Closed Cdfghglz closed 1 year ago
Can you launch your system with a verbose output of gazebo:
Turning this line to True
: https://github.com/ros-controls/ros2_control_demos/blob/master/ros2_control_demo_robot/launch/rrbot_system_position_only_gazebo.launch.py#L36
do you also have gazebo_ros2_control packages built from source?
Hi, thanks for your inputs.
Here is some of the the output of a verbose gazebo run:
[gzclient --verbose -2] [Msg] Waiting for master.
[gzclient --verbose -2] [Msg] Connected to gazebo master @ http://127.0.0.1:11345
[gzclient --verbose -2] [Msg] Publicized address: 192.168.84.160
[gzclient --verbose -2] [Err] [InsertModelWidget.cc:402] Missing model.config for model "/home/cdf/ws/colcon_ctrl_ws/install/ros2_control_demo_robot/share/ament_index"
[gzclient --verbose -2] [Err] [InsertModelWidget.cc:402] Missing model.config for model "/home/cdf/ws/colcon_ctrl_ws/install/ros2_control_demo_robot/share/colcon-core"
[gzclient --verbose -2] [Err] [InsertModelWidget.cc:402] Missing model.config for model "/home/cdf/ws/colcon_ctrl_ws/install/ros2_control_demo_robot/share/ros2_control_demo_robot"
[gzserver-1] [WARN] [1621055372.290500959] [gazebo_ros2_control]: Desired controller update period (0.01 s) is slower than the gazebo simulation period (0.001 s).
[gzserver-1] [INFO] [1621055372.290712444] [gazebo_ros2_control]: Loaded gazebo_ros2_control.
[gzclient --verbose -2] [Err] [Connection.cc:546] Connection[5] Closed during Read
[gzclient --verbose -2] [Err] [TransportIface.cc:385] Unable to read from master
[gzclient --verbose -2] [Err] [GLWidget.cc:896] Unable to connect to a running Gazebo master.
[gzserver-1] Segmentation fault (core dumped)
[ERROR] [gzserver-1]: process has died [pid 92701, exit code 139, cmd 'gzserver --verbose -s libgazebo_ros_init.so -s libgazebo_ros_factory.so -s libgazebo_ros_force_system.so '].
[gzclient --verbose -2] [Wrn] [Publisher.cc:136] Queue limit reached for topic /gazebo/default/user_camera/pose, deleting message. This warning is printed only once.
Then I additionally cloned gazebo_ros2_control to the colcon workspace (previously I used system install), but got an error building it:
In file included from /usr/include/gazebo-11/gazebo/msgs/MessageTypes.hh:7,
from /usr/include/gazebo-11/gazebo/physics/Joint.hh:29,
from /home/cdf/ws/colcon_ctrl_ws/src/gazebo_ros2_control/gazebo_ros2_control/include/gazebo_ros2_control/gazebo_system_interface.hpp:23,
from /home/cdf/ws/colcon_ctrl_ws/src/gazebo_ros2_control/gazebo_ros2_control/include/gazebo_ros2_control/gazebo_system.hpp:25,
from /home/cdf/ws/colcon_ctrl_ws/src/gazebo_ros2_control/gazebo_ros2_control/src/gazebo_system.cpp:19:
/usr/include/gazebo-11/gazebo/msgs/altimeter.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
/usr/include/gazebo-11/gazebo/msgs/altimeter.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
18 | #error incompatible with your Protocol Buffer headers. Please
| ^~~~~
/usr/include/gazebo-11/gazebo/msgs/altimeter.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
19 | #error regenerate this file with a newer version of protoc.
| ^~~~~
protoc --version
returns libprotoc 3.14.0
I managed to build gazebo_ros2_control by following step 1. in https://github.com/AcutronicRobotics/gym-gazebo2/issues/13#issuecomment-482410238
The gazebo segmentation fault still persists however, producing the same exact verbose output.
Hello, having the same issue.
Are you guys trying to compile things that clash on the protobuf compiler version? That's going to be a though nut to crack... I am not sure we can help you from ros2_control, essentially anything using gazebo will be broken. Are you trying to use gym + gazebo + ros2_control? That description seems to apply to ROS Crystal and Ubuntu 18, I'm not sure if it applies to Foxy and Ubuntu20 as well.
The compilation errors were solved by following the link referenced in my earlier reply https://github.com/ros-controls/ros2_control_demos/issues/91#issuecomment-841851095
The problem happens on runtime. It possibly still has to do with protobuf. Over the weekend I try to set up everything clean from scratch with a single version of protobuf on my system and report.
Closing the issue for lack of activity. Feel free to reopen it if needed.
I have followed the instructions and wanted to try the Gazebo example with
ros2 launch ros2_control_demo_robot rrbot_system_position_only_gazebo.launch.py
Versions as of issue creation time:
The output:
Could anyone help?