Skip to content

Commit 59212ce

Browse files
authored
Merge pull request #9 from Prabuddhi-05/main
adding the urdf file for the fisheye camera
2 parents 94ce725 + e188891 commit 59212ce

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+

0 commit comments

Comments
 (0)