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

problem with catkin_make, rospack find package but not catkin

asked 2017-05-29 07:00:28 -0500

anthoSoben gravatar image

Hi, I tried to building a node (chapter2_tutorials) but I can't build the package

I created a workspace at home/user/ros_workspace I put the package in this folder --> chapter2_tutorials. When I try to find this package with rospack find chapter2_tutorials, it is ok.

But when I try to execture catkin_make --pkg chapter2_tutorials I have: Packages "chapter2_tutorials" not found in the workspace.

For information, I put at the end of bashrc source /home/user/ros_workspace/catkin/devel/setup.bash export ROS_PACKAGE_PATH=~ros_workspace:/opt/ros/kinetic/share

edit retag flag offensive close merge delete


Don't mess with ROS_PACKAGE_PATH manually. I would remove the export line from your .bashrc. Also, it's /opt/ros/kinetic/setup.bash that you should be sourcing first and foremost. Is that in your .bashrc ?

spmaniato gravatar image spmaniato  ( 2017-05-29 13:13:27 -0500 )edit

Hi, Thanks to help me. But if I remove the export line, ROS don't find my package in my personnal workspace (ros_workspace) when I execute "rospack find chapter2_tutorials"

anthoSoben gravatar image anthoSoben  ( 2017-05-30 01:20:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-05-30 03:03:56 -0500

ROSkinect gravatar image

chapter2_tutorials is a rosbuild package so you need to use rosmake tool: rosmake chapter2_tutorials

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-05-29 07:00:28 -0500

Seen: 481 times

Last updated: May 30 '17