Created
August 11, 2019 07:11
-
-
Save pythongo1/5474275f82006b3b4527424cbf5a033e to your computer and use it in GitHub Desktop.
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
<?xml version="1.0"?> | |
<robot> | |
<!-- ros_control plugin --> <!-- original name rrbot --> | |
<gazebo> | |
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so"> | |
<robotNamespace>/</robotNamespace> | |
<robotSimType>gazebo_ros_control/DefaultRobotHWSim</robotSimType> | |
<legacyModeNS>true</legacyModeNS> | |
</plugin> | |
</gazebo> | |
<!-- my test --> | |
<gazebo reference="hand_link"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<!-- for my_hand_version3 , change color --> | |
<gazebo reference="hand_base"> | |
<material>Gazebo/Yellow</material> | |
</gazebo> | |
<gazebo reference="finger5_1"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<gazebo reference="finger4_1"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<gazebo reference="finger3_1"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<gazebo reference="finger2_1"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<gazebo reference="finger1_1"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<gazebo reference="finger1_rotate_axis"> | |
<material>Gazebo/Blue</material> | |
</gazebo> | |
<!-- Link1 --> | |
<gazebo reference="link1"> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<!-- Link2 --> | |
<gazebo reference="link2"> | |
<mu1>0.2</mu1> | |
<mu2>0.2</mu2> | |
<material>Gazebo/Black</material> | |
</gazebo> | |
<!-- Link3 --> | |
<gazebo reference="link3"> | |
<mu1>0.2</mu1> | |
<mu2>0.2</mu2> | |
<material>Gazebo/Orange</material> | |
</gazebo> | |
<!-- camera_link --> | |
<gazebo reference="camera_link"> | |
<mu1>0.2</mu1> | |
<mu2>0.2</mu2> | |
<material>Gazebo/Red</material> | |
</gazebo> | |
<!-- hokuyo --> | |
<gazebo reference="hokuyo_link"> | |
<sensor type="gpu_ray" name="head_hokuyo_sensor"> | |
<pose>0 0 0 0 0 0</pose> | |
<visualize>false</visualize> | |
<update_rate>40</update_rate> | |
<ray> | |
<scan> | |
<horizontal> | |
<samples>720</samples> | |
<resolution>1</resolution> | |
<min_angle>-1.570796</min_angle> | |
<max_angle>1.570796</max_angle> | |
</horizontal> | |
</scan> | |
<range> | |
<min>0.10</min> | |
<max>30.0</max> | |
<resolution>0.01</resolution> | |
</range> | |
<noise> | |
<type>gaussian</type> | |
<!-- Noise parameters based on published spec for Hokuyo laser | |
achieving "+-30mm" accuracy at range < 10m. A mean of 0.0m and | |
stddev of 0.01m will put 99.7% of samples within 0.03m of the true | |
reading. --> | |
<mean>0.0</mean> | |
<stddev>0.01</stddev> | |
</noise> | |
</ray> | |
<plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_gpu_laser.so"> | |
<topicName>/rrbot/laser/scan</topicName> | |
<frameName>hokuyo_link</frameName> | |
</plugin> | |
</sensor> | |
</gazebo> | |
<!-- camera --> | |
<gazebo reference="camera_link"> | |
<sensor type="camera" name="camera1"> | |
<update_rate>30.0</update_rate> | |
<camera name="head"> | |
<horizontal_fov>1.3962634</horizontal_fov> | |
<image> | |
<width>800</width> | |
<height>800</height> | |
<format>R8G8B8</format> | |
</image> | |
<clip> | |
<near>0.02</near> | |
<far>300</far> | |
</clip> | |
<noise> | |
<type>gaussian</type> | |
<!-- Noise is sampled independently per pixel on each frame. | |
That pixel's noise value is added to each of its color | |
channels, which at that point lie in the range [0,1]. --> | |
<mean>0.0</mean> | |
<stddev>0.007</stddev> | |
</noise> | |
</camera> | |
<plugin name="camera_controller" filename="libgazebo_ros_camera.so"> | |
<alwaysOn>true</alwaysOn> | |
<updateRate>0.0</updateRate> | |
<cameraName>rrbot/camera1</cameraName> | |
<imageTopicName>image_raw</imageTopicName> | |
<cameraInfoTopicName>camera_info</cameraInfoTopicName> | |
<frameName>camera_link_optical</frameName> | |
<!-- setting hackBaseline to anything but 0.0 will cause a misalignment | |
between the gazebo sensor image and the frame it is supposed to | |
be attached to --> | |
<hackBaseline>0.0</hackBaseline> | |
<distortionK1>0.0</distortionK1> | |
<distortionK2>0.0</distortionK2> | |
<distortionK3>0.0</distortionK3> | |
<distortionT1>0.0</distortionT1> | |
<distortionT2>0.0</distortionT2> | |
<CxPrime>0</CxPrime> | |
<Cx>0.0</Cx> | |
<Cy>0.0</Cy> | |
<focalLength>0.0</focalLength> | |
</plugin> | |
</sensor> | |
</gazebo> | |
</robot> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment