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

How to source a catkin_package ?

asked 2013-06-29 20:51:11 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I created a package using catkin_create_pkg dependencies only roscpp created a node using c++ code and then edited CMakelist.txt then I used catkin_make to build it. the next step i need to do it is to run the following to ......

source devel/setup.bash

after this I tried to run the node by

rosrun <packagename> <nodename>

it showing error that can not find package

What i understand is that my package is not sourced properly to ROS? Please tell the solution. If i am wrong then please correct me and tell the solution.

PS: following the Prof. Jason O'Kane tutorial on ROS linked on ros.org

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-30 01:34:47 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

You can source as below:

source ~/catkin_ws/devel/setup.bash

Check if catkin_make was successful and your package is built and linked with libraries successfully. Then try using rosrun command again.

edit flag offensive delete link more

Comments

Thank you Devasena,Finally I got to perform. I am at initial learning stage, may need your help again soon. Thank you for your reply.

lifelonglearner gravatar image lifelonglearner  ( 2013-06-30 19:01:36 -0500 )edit

Question Tools

Stats

Asked: 2013-06-29 20:51:11 -0500

Seen: 188 times

Last updated: Jun 30 '13