Skip to content

Commit

Permalink
Added Camera House model
Browse files Browse the repository at this point in the history
  • Loading branch information
VMOnGit committed Oct 4, 2024
1 parent e726aa2 commit 70bc33a
Show file tree
Hide file tree
Showing 13 changed files with 11,233 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Camera_House/turtlebot3_camera_house/cam1/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>

<model>
<name>Turtlebot3 House Camera</name>
<version>1.0</version>
<sdf version="1.6">overhead_cam1.sdf</sdf>

<author>
<name>Ajay Kumar Sandula</name>
<email>ajay.kumar.sandula@intel.com</email>
</author>

<description>
Turtlebot3 House Camera
</description>
</model>
47 changes: 47 additions & 0 deletions Camera_House/turtlebot3_camera_house/cam1/overhead_cam1.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name="overhead_camera1">
<static>true</static>
<link name="camera_link">
<pose>0 0 2 0 1.5708 0</pose> <!-- Adjust position and orientation as needed -->
<sensor name="camera" type="camera">
<camera>
<horizontal_fov>1.047</horizontal_fov>
<image>
<width>640</width>
<height>480</height>
<format>R8G8B8</format>
</image>
<clip>
<near>0.01</near>
<far>100</far>
</clip>
</camera>
<plugin name="camera_controller" filename="libgazebo_ros_camera.so">
<update_rate>30.0</update_rate>
<camera_name>overhead_camera1</camera_name>
<image_topic_name>/overhead_camera1/image_raw</image_topic_name>
<frame_name>camera_link</frame_name>
<ros>
<namespace>overhead_camera</namespace>
</ros>
</plugin>
</sensor>
<!-- Visual representation of the camera (cuboid) -->
<visual name="camera_visual1">
<geometry>
<box>
<size>0.1 0.1 0.2</size> <!-- Size of the cuboid -->
</box>
</geometry>
<material>
<ambient>0.0 0.0 1.0 1.0</ambient> <!-- Blue color -->
<diffuse>0.0 0.0 1.0 1.0</diffuse>
<specular>0.0 0.0 0.5 1.0</specular>
<emissive>0.0 0.0 0.0 1.0</emissive>
</material>
<pose>0 0 -0.1 0 0 0</pose> <!-- Position relative to the camera -->
</visual>
</link>
</model>
</sdf>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" ?>
<model>
<name>overhead_camera1</name>
<version>1.0</version>
<sdf version="1.7">model.sdf</sdf>
<author>
<name></name>
<email></email>
</author>
<description></description>
</model>
Loading

0 comments on commit 70bc33a

Please sign in to comment.