ros2 humble nav2 bringup turtlebot3 waffle not showing up
HI,
I used ros2 humble and followed "https://navigation.ros.org/getting_started/index.html". After launching script, Gazebo and RViz pop up but turtlebot_waffle is missing in gazebo models and in simulation. PLease assist
Asked by pavcliff on 2023-07-30 16:13:40 UTC
Comments
Sometimes Gazebo needs to download models and can timeout the first time.
Have you tried starting multiple times?
A couple of suggestions that will require digging into the launch files. The launch files just start multiple nodes, and sometimes just call other launch files. Try starting up parts independently. All you should need is base gazebo and the turtlebot model spawner to see turtlebot. If you can just start those you might be able to discern the error better.
Try starting Gazebo with the "verbose" flag set to see if it is throwing on your system. I have not been using that specific tutorial, but have been using turtlebot 3 on ROS 2 humble.
Otherwise, I suggest you past the specific terminal output that you see so we have more information to go on.
Asked by dcconner on 2023-07-31 10:44:34 UTC
Hi. Yes, I tried starting Gazebo multiple times but it doesn't help. I do not even see the Gazebo models having "turtlebot_waffle" like in the tutorial snapshot.
In the terminal output, I see the following error- [spawn_entity.py-3] File "/opt/ros/humble/lib/python3.10/site-packages/rpyutils/import_c_library.py", line 39, in import_c_library [spawn_entity.py-3] return importlib.import_module(name, package=package) [spawn_entity.py-3] File "/home/poorani/anaconda3/lib/python3.7/importlib/init.py", line 127, in import_module [spawn_entity.py-3] return _bootstrap._gcd_import(name[level:], package, level) [spawn_entity.py-3] ModuleNotFoundError: No module named 'rclpy._rclpy_pybind11' Upon research I found that this is due to python discrepancy between anaconda and ros. I'm not even using a conda env. I tried solutions suggested on google, but none are working. Can someone assist on this?
Asked by pavcliff on 2023-08-01 13:58:05 UTC
Modify your bashrc so that it does not point to anaconda, and only points to system Python.
Asked by dcconner on 2023-08-01 14:32:50 UTC
Yes, that fix worked. Thank you
Asked by pavcliff on 2023-08-08 20:47:26 UTC