Open madhu-korada opened 7 months ago
Looks like you haven't sourced ROS2 env before initiating gazebo launch. e.g source /opt/ros/<humble|foxy>/setup.bash
I don't think that is the case. I have sourced the environments correctly. But I also have ROS 1 in my environment, could that cause this issue?
I also faced this issue and I too have both ROS 1 (Noetic) and ROS 2 (Foxy) installed on my system. I managed to find a solution which involves modifying the ~/.bashrc
file. When I previously installed ROS 1, I ran echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
in my shell which automatically sources ROS 1 whenever a shell is opened. Hence when sourcing ROS 2, two different versions of ROS are being sourced in the same environment. This results in issues with the rosdep
tool, and might also be what's causing this issue wth gzserver
.
After opening the ~/.bashrc
file and removing the line source /opt/ros/noetic/setup.bash
, I created a new workspace and followed the guide again which got it to work.
When I try to run
gazebo -s libgazebo_map_creator.so myworld.world
command I get the above issue. What could be the issue here?