Adding new package to existing ROS workspace

asked 2019-01-08 22:35:44 -0500

Drkstr gravatar image

updated 2022-02-13 17:03:56 -0500

lucasw gravatar image

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.

edit retag flag offensive close merge delete


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?

mgruhler gravatar image mgruhler  ( 2019-01-09 00:24:01 -0500 )edit

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

Drkstr gravatar image Drkstr  ( 2019-01-09 00:37:05 -0500 )edit


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.

gvdhoorn gravatar image gvdhoorn  ( 2019-01-09 02:28:50 -0500 )edit

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

Drkstr gravatar image Drkstr  ( 2019-01-09 20:21:14 -0500 )edit