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

Colcon Tutorial on Dashing does not build

asked 2019-06-30 17:12:53 -0500

johnconn gravatar image

Ubuntu 18.04 running Dashing on hash bafddbdb of master

The example from the Colcon Tutorial does not build.

https://index.ros.org/doc/ros2/Tutori...

I kept getting errors like this from colcon :

Could not find a package configuration file provided by "example_interfaces" with any of the following names:

example_interfacesConfig.cmake
example_interfaces-config.cmake_

I grepped through the commit logs of this repo and 64128033 seemed like the cause - so I cloned https://github.com/ros2/example_inter... into my src directory such that my filesystem was like this

---- src

-------- examples

-------- example_interfaces

and Cmake stopped complaining about an unknown dependency.

After that I got a build error on master, went to the dashing branch and got farther, but I kept getting more colcon errors, and after cloning the following three repos into my src directory colcon built for me

https://github.com/ros2/rclcpp https://github.com/ros2/rcl_interfaces https://github.com/ros2/test_interfac...

my final directory structure looked like this: .

---- src

-------- examples

-------- example_interfaces

-------- rcl_interfaces

-------- test_interface_files

Did I miss a step in my install or is that tutorial lacking these steps?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-07-02 05:23:53 -0500

alsora gravatar image

It looks like you have not sourced the ROS2 SDK before building your new workspace: https://index.ros.org/doc/ros2/Tutori...

cd <path_to_ros2_ws>
source install/setup.sh

For the following errors, I think that you may have mixed different versions of SDK and examples repositories. Ensure that both of them are up to date to the distribution that you are using (Dashing).

edit flag offensive delete link more

Comments

I have the same issue with humble

phil123456 gravatar image phil123456  ( 2023-07-27 15:22:17 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-06-30 17:08:45 -0500

Seen: 833 times

Last updated: Jul 02 '19