Sourcing exsisting ros project/ running someone elses project
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/28/my_personal_robotic_companion/
All his code is available at https://github.com/sungjik/my_personal_robotic_companion.
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: mypersonalroboticcompanion 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:~/mypersonalroboticcompanion/mypersonalrobotic_companion/launch$
Essentially his main project files are in the directory of mypersonalroboticcompanion/mypersonalroboticcompanion/
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.
Asked by kuljotdhami on 2016-04-02 15:21:11 UTC
Answers
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
Asked by ahendrix on 2016-04-02 16:34:22 UTC
Comments
hanks for your reply. I get an error near the end of the catkin_make command. I will post the errors below
Asked by kuljotdhami on 2016-04-02 21:29:18 UTC
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'
Asked by kuljotdhami on 2016-04-02 21:31:41 UTC
Looks like a bug in the package. You should ask a new question about it or file a bug on their bug tracker.
Asked by ahendrix on 2016-04-03 22:37:14 UTC
Comments