File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
hunter_pltf_description/description Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" ?>
2+ <robot xmlns : xacro =" http://www.ros.org/wiki/xacro" >
3+ <xacro : macro name =" hunter_fisheye_camera" params =" name x y z roll:=0.0 pitch:=0.0 yaw:=0.0 is_sim:=true" >
4+ <joint name =" ${name}_camera_joint" type =" fixed" >
5+ <parent link =" base_link" />
6+ <child link =" ${name}_link" />
7+ <origin xyz =" ${x} ${y} ${z}" rpy =" ${roll} ${pitch} ${yaw}" />
8+ </joint >
9+
10+ <link name =" ${name}_link" >
11+ <visual >
12+ <origin xyz =" 0 0 0" rpy =" 0 0 0" />
13+ <geometry >
14+ <box size =" 0.038 0.038 0.010" />
15+ </geometry >
16+ <material name =" black" />
17+ </visual >
18+ </link >
19+
20+ <xacro : if value =" ${is_sim}" >
21+ <gazebo reference =" ${name}_link" >
22+ <sensor name =" ${name}_camera" type =" camera" >
23+ <pose > 0 0 0 0 0 0 </pose >
24+ <visualize >true</visualize >
25+ <update_rate >10</update_rate >
26+ <camera >
27+ <horizontal_fov >1.089</horizontal_fov >
28+ <image >
29+ <format >B8G8R8</format >
30+ <width >640</width >
31+ <height >480</height >
32+ </image >
33+ <clip >
34+ <near >0.05</near >
35+ <far >8.0</far >
36+ </clip >
37+ </camera >
38+ <plugin name =" ${name}_camera_controller" filename =" libgazebo_ros_camera.so" >
39+ <camera_name >${name}</camera_name >
40+ <hack_baseline >0</hack_baseline >
41+ </plugin >
42+ </sensor >
43+ </gazebo >
44+ </xacro : if >
45+ </xacro : macro >
46+ </robot >
47+
You can’t perform that action at this time.
0 commit comments