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

Sourcing exsisting ros project/ running someone elses project

asked 2016-04-02 15:21:11 -0500

kuljotdhami gravatar image

Hey guys I am attempting to run a automatic navigating project created in ros indigo by someone else. The lin to the project is https://sungjik.wordpress.com/2015/09...

All his code is available at https://github.com/sungjik/my_persona... .

Whenever I try to launch his launch file for example for laser_scan.launch I get an error of

raise ResourceNotFound(name, ros_paths=self._ros_paths)

ResourceNotFound: my_personal_robotic_companion ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks kuljot@kuljot-Lenovo-IdeaPad-U530-Touch:~/my_personal_robotic_companion/my_personal_robotic_companion/launch$

Essentially his main project files are in the directory of my_personal_robotic_companion/my_personal_robotic_companion/

I have used github clone command to have the projecct in my home directory. My main question is how to source and link to a catkin ws when the project already has catkin related files in it. I believe that might be related to this issue.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-04-02 16:34:22 -0500

ahendrix gravatar image

Instead of checking this project out directly into your home directory, you should check it out into a catkin workspace.

If you already have a catkin workspace, cd into the src directory in your catkin workspace, run the checkout there, and then rebuild your workspace.

If you don't already have a catkin workspace, you can make one (called catkin_ws)in your home directory:

cd ~
mkdir -p catkin_ws/src

Then check out the package into it:

cd ~/catkin_ws/src
git clone https://github.com/sungjik/my_personal_robotic_companion.git

Install dependencies:

 cd ~/catkin_ws
 rosdep install --from-paths src -i -y

(If rosdep still reports missing dependencies, check their source out into your workspace too)

And finally, build and source your workspace:

cd ~/catkin_ws
catkin_make
source devel/setup.bash
edit flag offensive delete link more

Comments

hanks for your reply. I get an error near the end of the catkin_make command. I will post the errors below

kuljotdhami gravatar image kuljotdhami  ( 2016-04-02 21:29:18 -0500 )edit

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:296 (message): catkin_package() include dir 'include' does not exist relative to '/home/kuljot/catkin_ws/src/my_personal_robotic_companion/my_personal_robotic_companion'

kuljotdhami gravatar image kuljotdhami  ( 2016-04-02 21:31:41 -0500 )edit

Looks like a bug in the package. You should ask a new question about it or file a bug on their bug tracker.

ahendrix gravatar image ahendrix  ( 2016-04-03 22:37:14 -0500 )edit

Question Tools

Stats

Asked: 2016-04-02 15:21:11 -0500

Seen: 368 times

Last updated: Apr 02 '16