Closed ZixuanLiu-Justin closed 1 day ago
hi @ZixuanLiu-Justin somehow this issue sometimes occurs on freshly installed systems on first launch. Can you try simply re-launching?
hi @ZixuanLiu-Justin somehow this issue sometimes occurs on freshly installed systems on first launch. Can you try simply re-launching?
Hi, so I tried to reboot my computer and colcon rebuild the repo, tried to re-launch it, the problem was still here. But one thing is that the computer I used to run is old, could this be a potential problem?
no worries, from the error message it is hard to tell what the issue is. Which version of Ubuntu and which ROS version are you using?
Did you make sure to install all dependencies?
rosdep install --from-paths src -i -r -y
Another alternative is to run this inside a Docker container https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/docker/doc/docker.html
Your last solution is to run a mock setup (no physics simulation, but maybe this will help you test some simple things)
ros2 launch lbr_bringup mock.launch.py model:=med7
ros2 launch lbr_bringup move_group.launch.py model:=med7 rviz:=true
I had a similar issue pop up on a new-ish Ubuntu 22.04 install on the latest Humble branch.
It was working a bit sporadically, and then completely stopped working after I did a wildcard install of gazebo packages for ros-humble with:
apt install ros-humble-gazebo-*
What helped me was to launch Gazebo in verbose mode, I changed this line: https://github.com/lbr-stack/lbr_fri_ros2_stack/blob/71bf3f8957697b31fb887106c5dbe02074d9a9ea/lbr_bringup/launch/gazebo.launch.py#L40
My modified line is:
ld.add_action(GazeboMixin.include_gazebo(launch_arguments={'verbose': 'true'}.items()))
The debug output was pretty useful, it was struggling to find the standard empty world that Gazebo uses and it pointed out some errors to me saying I should run:
source usr/share/gazebo-11/setup.bash
Not entirely sure if something I installed has messed with setting environmental variables, but in any case it does seem to work with the project now so thought I'd post in case launching Gazebo in verbose mode helps you out too!
Thank you for your information @hiqb217. After several attempts last week, I just gave up and used the docker instead. It seems the team @mhubii have just merged gazebo ignition to the main branch, so I was able to clone the new repo with ignition, and it works fine for me, at least for the demo. I really appreciate this as I am more familiar with the ignition :).
sounds great, thank you for briefly confirming @ZixuanLiu-Justin
Hi,
I was trying to run the Gazebo simulation. All I did was simply build the lbr_fri_ros2_stack following the README. When I tried to run the command:
ros2 launch lbr_bringup gazebo.launch.py model:=med7
I got the following information:
It says the Controller manager not available, and the Gazebo does not show the robot. Any sugguestions on this? Thanks