Cant get Humble to work
sb-oth opened this issue · 1 comments
Hello,
I cannot get the examples in the Humble branch to work with Fortress.
The Dockerfile does not build:
14.67 /home/ros2_ws/src/gz_ros2_control/gz_ros2_control/src/gz_ros2_control_plugin.cpp: In member function ‘virtual void gz_ros2_control::GazeboSimROS2ControlPlugin::Configure(const Entity&, const std::shared_ptr<const sdf::v12::Element>&, ignition::gazebo::v6::EntityComponentManager&, ignition::gazebo::v6::EventManager&)’: 14.67 /home/ros2_ws/src/gz_ros2_control/gz_ros2_control/src/gz_ros2_control_plugin.cpp:424:67: error: ‘__gnu_cxx::__alloc_traits<std::allocator<hardware_interface::HardwareInfo>, hardware_interface::HardwareInfo>::value_type’ {aka ‘struct hardware_interface::HardwareInfo’} has no member named ‘hardware_plugin_name’ 14.67 424 | std::string robot_hw_sim_type_str_ = control_hardware_info[i].hardware_plugin_name; 14.67 | ^~~~~~~~~~~~~~~~~~~~
I suspect that's because the Dockerfile does not check out the humble branch.
When trying to launch the examples without docker, I just get an empty gazebo and the error message:
[ros2-4] Could not contact service /controller_manager/load_controller [ERROR] [ros2-4]: process has died [pid 45464, exit code 1, cmd 'ros2 control load_controller --set-state active joint_state_broadcaster']. [INFO] [ros2-5]: process started with pid [45706]
I tried building the examples against the binary installation of ign_ros2_control and against source, same result.
Am I doing something wrong?
EDIT:
When adding the controller manager to the launch file like this:
control_node = Node( package="controller_manager", executable="ros2_control_node", parameters=[controller_file], output="both", remappings=[ ("~/robot_description", "/robot_description"), ], )
I get all the vehicles that were previously missing at one, which is also weird?
I have no idea what fixed it, but after the 3rd reboot it now works.
For others that might have a simmilar problem: It had something to with ruby.