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

Issues creating a rosbuild overlay on top of catkin packages

asked 2013-01-18 08:42:03 -0500

erikbeerepoot gravatar image

updated 2014-01-28 17:14:54 -0500

ngrennan gravatar image

I'm having an issue similar to 49825/how-do-i-create-a-rosbuild-overlay-on-a-catkin-workspace

http://answers.ros.org/question/49825/how-do-i-create-a-rosbuild-overlay-on-a-catkin-workspace/

That is, I'm attempting a fresh ROS groovy source install using the installation guide on a fresh copy of Ubuntu 12.04, and it seems my ROS_PACKAGE_PATH is not setup correctly.

This command:

sudo dpkg -s python-rosinstall

Gives:

...
Maintainer: Tully Foote <<a href="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</a>>
Architecture: all
Source: rosinstall
Version: 0.6.22-1
Provides: python2.6-rosinstall
...

I have my workspace setup as specified by the instructions, thus, my directory structure looks like this:

wet workspace:

$HOME/ros_catkin_ws/
 ../devel_isolated/
 ../install_isolated/
 ../src/
 ...

dry workspace:

$HOME/ros_ws/
 ../<dry_package_1>
 ../<dry_package_2>
 ../<dry_package_3>
 ../setup.sh
 ../setup.bash
 ...

Before attempting to build my dry packages using rosmake, I source $HOME/ros_ws/setup.bash. And then invoke rosmake in the package i'd like to build. This results in output like:

[rosmake-0] Starting >>> turtlebot_driver [ make ]
[rosmake-1] Starting >>> turtlebot_description [ make ]
[rosmake-2] Starting >>> turtlebot_node [ make ]       
[rosmake-3] Starting >>> pointcloud_to_laserscan [ make ]
[rosmake-0] Finished <<< turtlebot_driver [SKIP] No rule to make target None
[rosmake-0] Starting >>> turtlebot_bringup [ make ]
[rosmake-3] Finished <<< pointcloud_to_laserscan [SKIP] No rule to make target None 
[rosmake-2] Finished <<< turtlebot_node [SKIP] No rule to make target None 
 ...

If I execute the following command:

ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$HOME/ros_catkin_ws/src/

Then the packages will build as I expect. Can someone please point out my mistake?

edit retag flag offensive close merge delete

Comments

@piyushk When you say "all your tools" are you talking about all ros packages, or the python based install tools?

erikbeerepoot gravatar image erikbeerepoot  ( 2013-01-20 09:26:25 -0500 )edit

I think re installing python-rosinstall should be sufficient.

piyushk gravatar image piyushk  ( 2013-01-20 14:36:03 -0500 )edit

Tried this, but no dice. Same results.

erikbeerepoot gravatar image erikbeerepoot  ( 2013-01-27 02:12:36 -0500 )edit

@erikbeerepoot: see updated answer

piyushk gravatar image piyushk  ( 2013-01-29 18:30:31 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-01-19 03:04:43 -0500

updated 2013-01-29 13:34:24 -0500

My best guess is that your rosbuild workspace has not been initializaed properly. In the relevant tutorial, take a look at the rosws init command. Note that it initializes on top of the catkin workspace and not /opt/ros/groovy

To get this same effect after the rosbuild workspace has been initialized, modify your .rosinstall file in your rosbuild workspace. Change the setup-file entry to point to the setup file in catkin_ws/devel, and I believe you should be good.

Edit#1

catkin_make_isolated is behaving differently from catkin_make and no setup.bash is generated. I don't know if this is intended behavior, but I have reported it here: https://github.com/ros/catkin/issues/339

You might try calling catkin_make and using catkin_ws/devel as the target. I haven't looked into the scripts in enough detail to figure out if that will make a difference or not.

edit flag offensive delete link more

Comments

@erikbeerepoot: It looks about right, through I ran rosws init on the devel workspace. Can you upgrade all youur tools through apt, and try out the tutorial on new workspaces after clearing out your bashrc? Let's see if the same thing happens.

piyushk gravatar image piyushk  ( 2013-01-20 03:14:59 -0500 )edit
-1

answered 2013-01-19 06:21:47 -0500

erikbeerepoot gravatar image

My rosbuild workspace is intialized using the following command:

rosws init ~/ros_ws ~/ros_catkin_ws/install_isolated

Which is the install space. Oddly, my devel_isolated does not contain a setup.sh as it shows in the tutorial you pointed me to.

edit flag offensive delete link more

Comments

@erikbeerepoot: Use comments or update your question to post further updates.

piyushk gravatar image piyushk  ( 2013-01-20 03:13:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-01-18 08:42:03 -0500

Seen: 1,110 times

Last updated: Aug 30 '13