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

Question about turtlebot _robot.launch

asked 2014-04-23 04:10:42 -0500

Yantian_Zha gravatar image

Hi all, in _robot.launch, I'm confused in a sentence: ".../robots/$(arg base)_$(arg stacks)_$(arg 3d_sensor).urdf.xacro'" />". Can anyone give me a detailed explanation of this sentence? Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-04-23 05:27:49 -0500

Ken_in_JAPAN gravatar image

updated 2014-04-23 05:30:51 -0500

As you know, arg means an argument. As @dornhege also say, you have to choose a base of turtlebot model create, kobuki or roomba. You can check some urdf.xacro files in /turtlebot_description/robots.

create_circles_asus_xtion_pro.urdf.xacro
create_circles_kinect.urdf.xacro
kobuki_hexagons_asus_xtion_pro.urdf.xacro
kobuki_hexagons_kinect.urdf.xacro
roomba_circles_asus_xtion_pro.urdf.xacro
roomba_circles_kinect.urdf.xacro
$(arg base)_$(arg stacks)_$(arg 3d_sensor).urdf.xacro

You will understand the meaning if you look at above description.

edit flag offensive delete link more
1

answered 2014-04-23 04:37:02 -0500

dornhege gravatar image

The _robot.launch is generic and accepts different turtlebot variants that can be set via args. This just selects the correct URDF. Base is Kobuki or Create base. Stacks are the plates (round/hexagonal), and 3d sensor is kinect or xtion.

edit flag offensive delete link more

Comments

Thanks, and I found that "value="$(optenv..." does the selection function.

Yantian_Zha gravatar image Yantian_Zha  ( 2014-04-23 21:51:04 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-04-23 04:10:42 -0500

Seen: 164 times

Last updated: Apr 23 '14