You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _pages/shared_pages/ros-related-pages/simulation-gazebo.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -285,4 +285,43 @@ We can add some items by just adding items as we included the sun and the ground
285
285
You can change the position and orientation of any object which you have added with the `<pose>x y z roll pitch yaw</pose>` tag. Probably the easiest is to design the world in Gazebo and directly save there.
286
286
287
287
{: .notice--info}
288
-
Don't forget to add your /world folder directory in the **setup.py**
288
+
Don't forget to add your /world folder directory in the **setup.py**
289
+
290
+
# Troubleshooting
291
+
292
+
## Cannot do "sudo apt update"
293
+
The problem is either about your internet connection or ROS 2 GPG Key. First make sure that you have internet. Afterwards open a new terminal and paste this command: `sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg`
294
+
295
+
296
+
Now you can:
297
+
```
298
+
sudo apt update
299
+
sudo apt upgrade
300
+
```
301
+
302
+
## Getting "cache lock" error
303
+
It might be your **lock-frontend** process blocking the system. Find its process id (PID) and kill the process:
304
+
305
+
```
306
+
sudo lsof /var/lib/dpkg/lock-frontend
307
+
```
308
+
309
+
Use this PID and replace \<PID\> in the next command:
310
+
311
+
```
312
+
sudo kill -9 <PID>
313
+
```
314
+
315
+
## Robot looks weird on Gazebo
316
+
That is such an annoying problem but let's try. Probably your ros2-control packages are outdated and ´sudo apt upgrade´ cannot fix them - IDK why. We can remove them and reinstall them. Try using these commands:
0 commit comments