collab/igvc2018
git clone https://git.julia.blue/collab/igvc2018
700e311
simulation
1<?xml version="1.0"?> 2<robot> 3 4 <!--gazebo reference="left_wheel_hinge"> 5 <mu1 value="10000.0" /> 6 <mu2 value="10000.0" /> 7 <kp value="100000.0" /> 8 <kd value="0.00001" /> 9 <maxVel value="1.0" /> 10 <minDepth value="0.0001" /> 11 </gazebo> 12 <gazebo reference="right_wheel_hinge"> 13 <mu1 value="10000.0" /> 14 <mu2 value="10000.0" /> 15 <kp value="100000.0" /> 16 <kd value="0.00001" /> 17 <maxVel value="1.0" /> 18 <minDepth value="0.0001" /> 19 </gazebo--> 20 21 <gazebo> 22 <plugin name="differential_drive_controller" filename="libgazebo_ros_diff_drive.so"> 23 <legacyMode>false</legacyMode> 24 <alwaysOn>true</alwaysOn> 25 <updateRate>10</updateRate> 26 <leftJoint>left_wheel_hinge</leftJoint> 27 <rightJoint>right_wheel_hinge</rightJoint> 28 <wheelSeparation>0.4</wheelSeparation> 29 <wheelDiameter>0.2</wheelDiameter> 30 <torque>10</torque> 31 <commandTopic>cmd_vel</commandTopic> 32 <odometryTopic>odom</odometryTopic> 33 <odometryFrame>odom</odometryFrame> 34 <robotBaseFrame>chassis</robotBaseFrame> 35 </plugin> 36 </gazebo> 37 38 39 <gazebo reference="chassis"> 40 <material>Gazebo/Orange</material> 41 </gazebo> 42 43 <gazebo reference="left_wheel"> 44 <material>Gazebo/Blue</material> 45 </gazebo> 46 47 <gazebo reference="right_wheel"> 48 <material>Gazebo/Blue</material> 49 </gazebo> 50 51 52 <gazebo reference="camera"> 53 <material>Gazebo/Green</material> 54 <sensor type="camera" name="camera1"> 55 <update_rate>30.0</update_rate> 56 <camera name="head"> 57 <horizontal_fov>2.094395102</horizontal_fov> 58 <image> 59 <width>800</width> 60 <height>800</height> 61 <format>R8G8B8</format> 62 </image> 63 <clip> 64 <near>0.02</near> 65 <far>300</far> 66 </clip> 67 </camera> 68 <plugin name="camera_controller" filename="libgazebo_ros_camera.so"> 69 <alwaysOn>true</alwaysOn> 70 <updateRate>0.0</updateRate> 71 <cameraName>mybot/camera1</cameraName> 72 <imageTopicName>image_raw</imageTopicName> 73 <cameraInfoTopicName>camera_info</cameraInfoTopicName> 74 <frameName>camera</frameName> 75 <hackBaseline>0.07</hackBaseline> 76 <distortionK1>0.0</distortionK1> 77 <distortionK2>0.0</distortionK2> 78 <distortionK3>0.0</distortionK3> 79 <distortionT1>0.0</distortionT1> 80 <distortionT2>0.0</distortionT2> 81 </plugin> 82 </sensor> 83 </gazebo> 84 85 <!-- hokuyo --> 86 <gazebo reference="hokuyo"> 87 <sensor type="ray" name="head_hokuyo_sensor"> 88 <pose>0 0 0 0 0 0</pose> 89 <visualize>true</visualize> 90 <update_rate>40</update_rate> 91 <ray> 92 <scan> 93 <horizontal> 94 <samples>720</samples> 95 <resolution>1</resolution> 96 <min_angle>-1.570796</min_angle> 97 <max_angle>1.570796</max_angle> 98 </horizontal> 99 </scan> 100 <range> 101 <min>0.10</min> 102 <max>30.0</max> 103 <resolution>0.01</resolution> 104 </range> 105 <noise> 106 <type>gaussian</type> 107 <!-- Noise parameters based on published spec for Hokuyo laser 108 achieving "+-30mm" accuracy at range < 10m. A mean of 0.0m and 109 stddev of 0.01m will put 99.7% of samples within 0.03m of the true 110 reading. --> 111 <mean>0.0</mean> 112 <stddev>0.01</stddev> 113 </noise> 114 </ray> 115 <plugin name="gazebo_ros_head_hokuyo_controller" filename="libgazebo_ros_laser.so"> 116 <topicName>/mybot/laser/scan</topicName> 117 <frameName>hokuyo</frameName> 118 </plugin> 119 </sensor> 120 </gazebo> 121 122</robot>