Closed Mechazo11 closed 1 month ago
Have you installed older binaries of ros2_control* on your Ubuntu 22.04 (humble, iron)?
Have you built the ros2_control_test_assets? (with colcon build --packages-up-to ros2_control
for example)
Hi @christophfroehlich 1) Yes it may be the case. But to account for this, I made sure my terminal does not source the base ros2 humble workspace. 2) Haven't tried the second option, will give it a shot and report back
@christophfroehlich in the ros2_control_test_assets/descriptions.hpp
I noticed the following
[[maybe_unused]] const std::string TEST_ACTUATOR_HARDWARE_NAME = "TestActuatorHardware";
[[maybe_unused]] const std::string TEST_ACTUATOR_HARDWARE_TYPE = "actuator";
[[maybe_unused]] const std::string TEST_ACTUATOR_HARDWARE_PLUGIN_NAME = "test_actuator";
[[maybe_unused]] const std::vector<std::string> TEST_ACTUATOR_HARDWARE_COMMAND_INTERFACES = {
"joint1/position", "joint1/max_velocity"};
[[maybe_unused]] const std::vector<std::string> TEST_ACTUATOR_HARDWARE_STATE_INTERFACES = {
"joint1/position", "joint1/velocity", "joint1/some_unlisted_interface"};
From this stackexchange post the [[maybe_unused]]
keyword is mostly helpful if a variable is potentially not used anymore but from the problem above, it clearly is being used.
Could this keyword maybe the cause of this build failure?
@christophfroehlich I got ros2_control
branch to build without any issues. Apparently the your first point was correct, there was a conflict between my global ROS 2 Humble and ROS 2 Jazzy workspaces. When I ensured that the global workspace is not sourced, ros2_control
built without any issues. Closing this issue for now.
Describe the bug Hello,
I am building ros2 jazzy from source in Ubuntu 22.04 and added the
ros2_control
package using the followingThe error I am encountering is with the
controller_manager
package which shows the followingExpected behavior All packages in ros2_control to build without any issues.
Environment (please complete the following information):
Additional context I am building a ROS 2 Jazzy workspace to integrate Gazebo Harmonic using the concept of overlaying ros workspaces in Ubuntu 22.04.