Robotics StackExchange | Archived questions

Adding new package to existing ROS workspace

I have a ROS workspace setup and I am having trouble adding a new package to it.

I am trying to get the rplidar ROS package built and working. So I clone the repo from github into <path_to_my_workspace/src> and then run catkin_make in my workspace. It builds without any errors.

But then, when I try to do roscd rplidar_ros I get

roscd: No such package/stack 'rplidar_ros'

I have path_to_my_workspace/devel/setup.bash sourced.

Asked by Drkstr on 2019-01-08 23:35:44 UTC

Comments

did you try sourcing the setup.bash again? Sometimes this helps...

Other than that: This is a typical workflow and from your explanation I don't see any reason why this should not work.

Maybe post the output of echo $ROS_PACKAGE_PATH?

Asked by mgruhler on 2019-01-09 01:24:01 UTC

Looks like a restart fixed the issue¯(ツ)/¯

Asked by Drkstr on 2019-01-09 01:37:05 UTC

@mgruhler:

This is a typical workflow [..]

in principle this is true, but it would be good to mention that cloning a single repository and expecting catkin_make to be successful is not a good strategy.

@Drkstr: please refer to #q252478 for a more complete set of steps.

Asked by gvdhoorn on 2019-01-09 03:28:50 UTC

thanks, gvdhoom. That's good to know :)

Asked by Drkstr on 2019-01-09 21:21:14 UTC

Answers