ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

gazebo ROS2 humble on ubuntu 22.04

asked 2022-10-21 06:59:28 -0500

lfb gravatar image

Hi everyone I've instalaled ROS2 Humble on Ubuntu 22.04. When trying to start Gazebo, I get the errors:

 $ gazebo --verbose /opt/ros/humble/share/gazebo_plugins/worlds/gazebo_ros_diff_drive_demo.world

Gazebo multi-robot simulator, version 11.10.2
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
Gazebo multi-robot simulator, version 11.10.2
Copyright (C) 2012 Open Source Robotics Foundation.

Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 10.0.2.15
[Msg] Loading world file [/opt/ros/humble/share/gazebo_plugins/worlds/gazebo_ros_diff_drive_demo.world]
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 10.0.2.15
[Msg] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Wrn] [Server.cc:579] Waited 1seconds for namespaces.
[Err] [Server.cc:584] Waited 11 seconds for namespaces. Giving up.
[Err] [Node.cc:118] No namespaces found
[INFO] [1666326686.114445250] [gazebo_ros_node]: ROS was initialized without arguments.
    [INFO] [1666326686.252823429] [demo.diff_drive]: Wheel pair 1 separation set to [1.250000m]
    [INFO] [1666326686.253110570] [demo.diff_drive]: Wheel pair 1 diameter set to [0.600000m]    
[INFO] [1666326686.257526483] [demo.diff_drive]: Subscribed to [/demo/cmd_demo]    
[INFO] [1666326686.260001870] [demo.diff_drive]: Advertise odometry on [/demo/odom_demo]    
[INFO] [1666326686.263030123] [demo.diff_drive]: Publishing odom transforms between [odom_demo] and [chassis]    
[INFO] [1666326686.269774151] [demo.diff_drive]: Publishing wheel transforms between [chassis], [left_wheel_joint] and [right_wheel_joint]

and gazebo doesn't start. What am I missing? Thanks in advanced!

edit retag flag offensive close merge delete

Comments

1

This looks like a duplicate of https://answers.ros.org/question/2450...

The discussion here also looks helpful: https://github.com/jaejunlee0538/gaze...

alexdgus gravatar image alexdgus  ( 2022-10-21 09:36:22 -0500 )edit

Thanks @alexdgus! I had tried before posted this question, but no luck with them on Humble.

lfb gravatar image lfb  ( 2022-10-25 01:37:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-21 15:46:08 -0500

ljaniec gravatar image

Can you try this tutorial? https://docs.ros.org/en/humble/Tutori... I don't know if these demo worlds are actual for ROS2 Humble. The error with namespaces seems to be connected with this Q&A

edit flag offensive delete link more

Comments

thanks @ljaniec! The tutorial works for me but after installing ros-humble-desktop-full. So gazebo need to be called through ign now?

lfb gravatar image lfb  ( 2022-10-25 01:45:07 -0500 )edit

It's a little more complicated, there was a period when we had the "old" Gazebo (up to 11, I think) and the "new" Gazebo Ignition, but then the naming convention was changed and the "old" Gazebo is now called Gazebo Classic, and the "new" Gazebo Ignition is now simply called Gazebo. I myself am not sure which convention of launching simulations with long-term support now applies. It looks like you "should" be able to run both, but we could see you couldn't start Gazebo Classic normally...

ljaniec gravatar image ljaniec  ( 2022-10-25 03:02:01 -0500 )edit

Yes...I would prefer to use de Classic by the moment but I don't know what I'm missing...

lfb gravatar image lfb  ( 2022-10-25 03:36:28 -0500 )edit

Question Tools

Stats

Asked: 2022-10-21 06:59:28 -0500

Seen: 629 times

Last updated: Oct 21 '22