File tree Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <launch >
3+ <arg name =" name" default =" dock" />
4+ <!-- Load the URDF into the ROS Parameter Server -->
5+ <param name =" dock_description"
6+ command =" $(find xacro)/xacro --inorder '$(find ca_description)/urdf/dock/dock.xacro'" />
7+
8+ <!-- Run a python script to the send a service call to gazebo_ros to spawn a URDF robot -->
9+ <node name =" dock_spawner" pkg =" gazebo_ros" type =" spawn_model" respawn =" false" output =" screen" args ="
10+ -urdf
11+ -model $(arg name)
12+ -param dock_description
13+ " />
14+ </launch >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <robot name =" dock" xmlns : xacro =" http://ros.org/wiki/xacro" >
3+ <xacro : include filename =" $(find ca_description)/urdf/common_properties.xacro" />
4+ <xacro : macro name =" dock" params =" width" >
5+ <link name =' back' >
6+ <visual name =' visual' >
7+ <origin xyz =" 0 0 0" rpy =" 0 0 0" />
8+ <geometry >
9+ <box size =" ${width} ${width/3} ${width * 2/3}" />
10+ </geometry >
11+ </visual >
12+ <collision name =' collision' >
13+ <origin xyz =" 0 0 0" rpy =" 0 0 0" />
14+ <geometry >
15+ <box size =" ${width} ${width/3} ${width * 2/3}" />
16+ </geometry >
17+ </collision >
18+ <xacro : inertial_cuboid_with_pose mass =" 0.15" x_length =" ${width}"
19+ y_length =" ${width/3}" z_length =" ${width * 2/3}" >
20+ <origin xyz =" 0 0 0" />
21+ </xacro : inertial_cuboid_with_pose >
22+ </link >
23+ <link name =' base' >
24+ <visual name =' visual' >
25+ <origin xyz =" 0 ${width/2 - width/6} ${-(width * 2/3)/2}" rpy =" 0 0 0" />
26+ <geometry >
27+ <box size =" ${width} ${width} 0.01" />
28+ </geometry >
29+ </visual >
30+ <collision name =' collision' >
31+ <origin xyz =" 0 ${width/2 - width/6} ${-(width * 2/3)/2}" rpy =" 0 0 0" />
32+ <geometry >
33+ <box size =" ${width} ${width} 0.01" />
34+ </geometry >
35+ </collision >
36+ <xacro : inertial_cuboid_with_pose mass =" 0.05" x_length =" ${width}"
37+ y_length =" ${width}" z_length =" 0.01" >
38+ <origin xyz =" 0 ${width/2 - width/6} ${-(width * 2/3)/2}" rpy =" 0 0 0" />
39+ </xacro : inertial_cuboid_with_pose >
40+ </link >
41+ <joint name =' glue' type =' fixed' >
42+ <parent link =" back" />
43+ <child link =" base" />
44+ </joint >
45+ </xacro : macro >
46+ <xacro : dock width =" 0.15" >
47+ </xacro : dock >
48+ </robot >
Original file line number Diff line number Diff line change 3131 <arg name =" localization" value =" $(arg localization)" />
3232 </include >
3333
34+ <!-- Spawn dock -->
35+ <include file =" $(find ca_description)/launch/spawn_dock.launch" >
36+ <arg name =" name" value =" $(optenv DOCK_NAME dock)" />
37+ </include >
38+
3439 <!-- map_server -->
3540 <include if =" $(eval str(arg('localization'))=='amcl')"
3641 file=" $(find ca_move_base)/launch/map_server.launch" >
You can’t perform that action at this time.
0 commit comments