colcon build cannot find control_msgs
I installed ROS following these steps https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Binary.html and had no issues running the test program with the Talker and Listener. I then installed Gazebo using the one-line install from http://gazebosim.org/tutorials?tut=install_ubuntu.
I am trying to use iRobot's Create3 model in a gazebo test environment using the following instructions on their github page https://github.com/iRobotEducation/create3_sim. All is well until I try to build the work space colcon build --symlink-install
which outputs
Starting >>> ros2_control_test_assets
Starting >>> controller_manager_msgs
Starting >>> irobot_create_msgs
Starting >>> irobot_create_description
Starting >>> irobot_create_ignition_plugins
Finished <<< ros2_control_test_assets [0.29s]
Starting >>> hardware_interface
Finished <<< irobot_create_description [0.28s]
Finished <<< irobot_create_ignition_plugins [0.36s]
--- stderr: hardware_interface
CMake Error at CMakeLists.txt:9 (find_package):
By not providing "Findcontrol_msgs.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"control_msgs", but CMake did not find one.
Could not find a package configuration file provided by "control_msgs" with
any of the following names:
control_msgsConfig.cmake
control_msgs-config.cmake
Add the installation prefix of "control_msgs" to CMAKE_PREFIX_PATH or set
"control_msgs_DIR" to a directory containing one of the above files. If
"control_msgs" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< hardware_interface [0.19s, exited with code 1]
Aborted <<< controller_manager_msgs [0.52s]
Aborted <<< irobot_create_msgs [0.71s]
Summary: 3 packages finished [1.14s]
1 package failed: hardware_interface
2 packages aborted: controller_manager_msgs irobot_create_msgs
1 package had stderr output: hardware_interface
26 packages not processed
I have trying installing it independently, but it is already installed correctly
etgtech@etg-tech-linux:~/create3_ws$ sudo apt install ros-galactic-control-msgs
[sudo] password for etgtech:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ros-galactic-control-msgs is already the newest version (3.0.0-2focal.20211011.203147).
The following package was automatically installed and is no longer required:
libfprint-2-tod1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
I'm not sure if the suggest error fix is correct, but if it is I'm not sure where I would set the PATH variables. Local to the workspace?
Thanks for any help
Asked by crh_redbird1 on 2022-01-31 16:27:57 UTC
Answers
I did a fresh install of ROS2-Galactic using Debian packages and it seems to have fixed my build issues where origanlly I did a basic Ubuntu install. The Debian packages install is for ros-desktop https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html
Asked by crh_redbird1 on 2022-02-01 16:25:44 UTC
Comments
Just to be sure - you changed your branch to the
galactic
one (like this)? Were both ROS2 and workspace sourced?Asked by ljaniec on 2022-02-01 09:04:07 UTC
I hadn't switched the to the galactic
branch
but I have now. I deleted the workspace and remade just to be sure I didn't have extra dependencies, but I still I have the same ever when tying to build.Asked by crh_redbird1 on 2022-02-01 13:37:41 UTC