Skip to content

Commit 413ed86

Browse files
committed
Add new sensor model
- segmentation camera
1 parent bef6281 commit 413ed86

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

models/robot_segcam/model.config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<model>
3+
<name>Sensor::SemanticSegmentationCamera</name>
4+
<version>1.0</version>
5+
<sdf version="1.9">model.sdf</sdf>
6+
<author>
7+
<name>LG Electronics</name>
8+
<email></email>
9+
</author>
10+
11+
<description>
12+
13+
</description>
14+
</model>

models/robot_segcam/model.sdf

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0"?>
2+
<sdf version='1.9'>
3+
<model name='segment_cam'>
4+
<static>0</static>
5+
<allow_auto_disable>1</allow_auto_disable>
6+
7+
<link name='link'>
8+
<self_collide>0</self_collide>
9+
<enable_wind>0</enable_wind>
10+
<kinematic>0</kinematic>
11+
12+
<inertial>
13+
<mass>0.072</mass>
14+
<inertia>
15+
<ixx>0.000007</ixx>
16+
<ixy>0</ixy>
17+
<ixz>0</ixz>
18+
<iyy>0.000007</iyy>
19+
<iyz>0</iyz>
20+
<izz>0.000007</izz>
21+
</inertia>
22+
</inertial>
23+
24+
<collision name='collision_camera'>
25+
<geometry>
26+
<box>
27+
<size>0.030000 0.100000 0.025000</size>
28+
</box>
29+
</geometry>
30+
<max_contacts>1</max_contacts>
31+
</collision>
32+
33+
<visual name='visual_camera'>
34+
<geometry>
35+
<box>
36+
<size>0.030000 0.100000 0.025000</size>
37+
</box>
38+
</geometry>
39+
</visual>
40+
41+
<sensor name='camera' type='segmentation_camera'>
42+
<camera>
43+
<segmentation_type>semantic</segmentation_type>
44+
<save enabled="False">
45+
<path>/home/yg/Pictures/cam</path>
46+
</save>
47+
<horizontal_fov>2.1</horizontal_fov>
48+
<image>
49+
<width>320</width>
50+
<height>240</height>
51+
<format>L16</format>
52+
</image>
53+
<clip>
54+
<near>0.054</near>
55+
<far>50</far>
56+
</clip>
57+
<noise>
58+
<type>gaussian</type>
59+
<mean>0.0</mean>
60+
<stddev>0.00</stddev>
61+
</noise>
62+
<distortion>
63+
<k1>0.10369</k1>
64+
<k2>0.10328</k2>
65+
</distortion>
66+
</camera>
67+
68+
<always_on>1</always_on>
69+
<update_rate>5</update_rate>
70+
<visualize>0</visualize>
71+
<plugin name='SegmentationCameraPlugin' filename='libSegmentationCameraPlugin.so'>
72+
<ros2>
73+
<topic_name>segmentation</topic_name>
74+
<frame_id>camera_link</frame_id>
75+
</ros2>
76+
<segmentation>
77+
<label>BOX</label>
78+
<label>CYLINDER</label>
79+
<!-- <label>SPHERE</label> -->
80+
<label>ground</label>
81+
</segmentation>
82+
</plugin>
83+
</sensor>
84+
</link>
85+
</model>
86+
</sdf>

0 commit comments

Comments
 (0)