Ask Your Question

File structure question about ROS

asked 2011-11-15 01:29:36 -0500

Aroarus gravatar image

updated 2014-04-20 14:09:26 -0500

ngrennan gravatar image

I am installing a turtlebot arm onto my turtlebot and one of the instructions in the tutorial is :

Setting up the URDF

Next, we have to set up the TurtleBot's hardware description file (URDF) to include the arm. This is done through the TurtleBot bringup script in /etc/ros/turtlebot.

On the TurtleBot, edit /etc/ros/turtlebot/bringup.launch in your favorite text editor and change it to resemble this:

  <param name="turtlebot_node/gyro_scale_correction" value="1.0"/>
  <param name="turtlebot_node/odom_angular_scale_correction" value="1.0"/>

  <include file="$(find turtlebot_bringup)/minimal.launch">
    <arg name="urdf_file" value="$(find xacro)/ '$(find turtlebot_arm_description)/urdf/arm.urdf.xacro'" />


The line

<arg name="urdf_file" value="$(find xacro)/ '$(find turtlebot_arm_description)/urdf/arm.urdf.xacro'" />

tells the TurtleBot to use the urdf that includes the arm from the turtlebot_arm_description package.

However, my /etc directory does not contain a ros folder. There is a ros folder within my /opt file that has a subdirectory electric/stacks/turtlebot/turtlebot_bringup which contains the following files and folders:

Files: app_manager.launch CMakeLists.txt kinect.launch Makefile minimal.launch ROS_NOBUILD
mainpage.dox manifest.xml

Folders: upstart bin config mock_apps scripts

Does anyone have an idea which file I should be modifying? Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-11-15 06:14:23 -0500

mmwise gravatar image

updated 2011-11-15 06:14:50 -0500

This is new in electric.

roscd turtlebot_bringup/upstart 
sudo ./install.bash <<wireless-id>>

This will create the etc/ros/electric directory and put turtlebot.launch in the directory. Then you can edit the turtlebot.launch file. This is the file that is launched by sudo service turtlebot start.

edit flag offensive delete link more


Thank you very much!
Aroarus gravatar image Aroarus  ( 2011-11-16 03:53:20 -0500 )edit
In this case do I just copy that chunk of code over directly, or should I be adding a line from it to the existing file? More specifically, does the URDF File for the arm contain the rest of the turtlebot as well, or at least link to something that does, or will this change it to just see the arm?
Aroarus gravatar image Aroarus  ( 2011-11-16 04:22:12 -0500 )edit
change the urdf line in the launch file to have the turtlebot arm instead of just turtlebot..
mmwise gravatar image mmwise  ( 2011-11-16 06:31:26 -0500 )edit
Thank you very much! I guess this answers my question that the turtlebot_arm urdf file must contain the original turtlebot specs, not just the arm. Have a great day!
Aroarus gravatar image Aroarus  ( 2011-11-16 06:58:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-11-15 01:29:36 -0500

Seen: 378 times

Last updated: Nov 15 '11