Skip to content

Commit

Permalink
Add new sensor model
Browse files Browse the repository at this point in the history
- segmentation camera
  • Loading branch information
hyunseok-yang committed Mar 8, 2024
1 parent bef6281 commit 413ed86
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
14 changes: 14 additions & 0 deletions models/robot_segcam/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<model>
<name>Sensor::SemanticSegmentationCamera</name>
<version>1.0</version>
<sdf version="1.9">model.sdf</sdf>
<author>
<name>LG Electronics</name>
<email></email>
</author>

<description>

</description>
</model>
86 changes: 86 additions & 0 deletions models/robot_segcam/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0"?>
<sdf version='1.9'>
<model name='segment_cam'>
<static>0</static>
<allow_auto_disable>1</allow_auto_disable>

<link name='link'>
<self_collide>0</self_collide>
<enable_wind>0</enable_wind>
<kinematic>0</kinematic>

<inertial>
<mass>0.072</mass>
<inertia>
<ixx>0.000007</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>0.000007</iyy>
<iyz>0</iyz>
<izz>0.000007</izz>
</inertia>
</inertial>

<collision name='collision_camera'>
<geometry>
<box>
<size>0.030000 0.100000 0.025000</size>
</box>
</geometry>
<max_contacts>1</max_contacts>
</collision>

<visual name='visual_camera'>
<geometry>
<box>
<size>0.030000 0.100000 0.025000</size>
</box>
</geometry>
</visual>

<sensor name='camera' type='segmentation_camera'>
<camera>
<segmentation_type>semantic</segmentation_type>
<save enabled="False">
<path>/home/yg/Pictures/cam</path>
</save>
<horizontal_fov>2.1</horizontal_fov>
<image>
<width>320</width>
<height>240</height>
<format>L16</format>
</image>
<clip>
<near>0.054</near>
<far>50</far>
</clip>
<noise>
<type>gaussian</type>
<mean>0.0</mean>
<stddev>0.00</stddev>
</noise>
<distortion>
<k1>0.10369</k1>
<k2>0.10328</k2>
</distortion>
</camera>

<always_on>1</always_on>
<update_rate>5</update_rate>
<visualize>0</visualize>
<plugin name='SegmentationCameraPlugin' filename='libSegmentationCameraPlugin.so'>
<ros2>
<topic_name>segmentation</topic_name>
<frame_id>camera_link</frame_id>
</ros2>
<segmentation>
<label>BOX</label>
<label>CYLINDER</label>
<!-- <label>SPHERE</label> -->
<label>ground</label>
</segmentation>
</plugin>
</sensor>
</link>
</model>
</sdf>

0 comments on commit 413ed86

Please sign in to comment.