-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
150 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" > | ||
|
||
<joint name="camera_joint" type="fixed"> | ||
<parent link="chassis"/> | ||
<child link="camera_link"/> | ||
<origin xyz="0.128 0 0.241" rpy="0 0.18 0"/> | ||
</joint> | ||
|
||
<link name="camera_link"> | ||
<visual> | ||
<geometry> | ||
<box size="0.010 0.03 0.03"/> | ||
</geometry> | ||
<material name="black"/> | ||
</visual> | ||
<visual> | ||
<origin xyz="0 0 -0.05"/> | ||
<geometry> | ||
<cylinder radius="0.002" length="0.1"/> | ||
</geometry> | ||
<material name="black"/> | ||
</visual> | ||
</link> | ||
|
||
|
||
<joint name="camera_optical_joint" type="fixed"> | ||
<parent link="camera_link"/> | ||
<child link="camera_link_optical"/> | ||
<origin xyz="0 0 0" rpy="${-pi/2} 0 ${-pi/2}"/> | ||
</joint> | ||
|
||
<link name="camera_link_optical"></link> | ||
|
||
|
||
|
||
<gazebo reference="camera_link"> | ||
<material>Gazebo/Black</material> | ||
|
||
<sensor name="camera" type="camera"> | ||
<pose> 0 0 0 0 0 0 </pose> | ||
<visualize>true</visualize> | ||
<update_rate>10</update_rate> | ||
<camera> | ||
<horizontal_fov>1.089</horizontal_fov> | ||
<image> | ||
<format>R8G8B8</format> | ||
<width>640</width> | ||
<height>480</height> | ||
</image> | ||
<clip> | ||
<near>0.05</near> | ||
<far>8.0</far> | ||
</clip> | ||
</camera> | ||
<plugin name="camera_controller" filename="libgazebo_ros_camera.so"> | ||
<frame_name>camera_link_optical</frame_name> | ||
</plugin> | ||
</sensor> | ||
</gazebo> | ||
|
||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" > | ||
|
||
<joint name="laser_joint" type="fixed"> | ||
<parent link="chassis"/> | ||
<child link="laser_frame"/> | ||
<origin xyz="0.055 0 0.41" rpy="0 0 0"/> | ||
</joint> | ||
|
||
<link name="laser_frame"> | ||
<visual> | ||
<geometry> | ||
<cylinder radius="0.05" length="0.04"/> | ||
</geometry> | ||
<material name="black"/> | ||
</visual> | ||
<visual> | ||
<origin xyz="0 0 -0.05"/> | ||
<geometry> | ||
<cylinder radius="0.01" length="0.1"/> | ||
</geometry> | ||
<material name="black"/> | ||
</visual> | ||
<collision> | ||
<geometry> | ||
<cylinder radius="0.05" length="0.04"/> | ||
</geometry> | ||
</collision> | ||
<xacro:inertial_cylinder mass="0.1" length="0.04" radius="0.05"> | ||
<origin xyz="0 0 0" rpy="0 0 0"/> | ||
</xacro:inertial_cylinder> | ||
</link> | ||
|
||
|
||
|
||
<gazebo reference="laser_frame"> | ||
<material>Gazebo/Black</material> | ||
|
||
<sensor name="laser" type="ray"> | ||
<pose> 0.055 0 0.03 0 0 0 </pose> | ||
<visualize>false</visualize> | ||
<update_rate>10</update_rate> | ||
<ray> | ||
<scan> | ||
<horizontal> | ||
<samples>450</samples> | ||
<min_angle>-3.14</min_angle> | ||
<max_angle>3.14</max_angle> | ||
</horizontal> | ||
</scan> | ||
<range> | ||
<min>0.05</min> | ||
<max>12</max> | ||
</range> | ||
</ray> | ||
<plugin name="laser_controller" filename="libgazebo_ros_ray_sensor.so"> | ||
<ros> | ||
<argument>~/out:=scan</argument> | ||
</ros> | ||
<output_type>sensor_msgs/LaserScan</output_type> | ||
<frame_name>laser_frame</frame_name> | ||
</plugin> | ||
</sensor> | ||
</gazebo> | ||
|
||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters