Skip to content

Commit

Permalink
added gps setup (publishes)
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-edward committed Jul 28, 2023
1 parent 4e11e46 commit 2cdefab
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@

<gazebo reference="nav_imu_link">
<sensor name="nav_imu_sensor" type="imu">
<plugin filename="libgazebo_ros_imu_sensor.so" name="nav_imu_plugin">
<plugin filename="libgazebo_ros_imu_sensor.so" name="imu_plugin">
<ros>
<namespace>/demo</namespace>
<remapping>~/out:=imu</remapping>
Expand Down Expand Up @@ -246,19 +246,38 @@

<gazebo reference="nav_gps_link">
<sensor name="nav_gps_sensor" type="gps">
<always_on>true</always_on>
<update_rate>1.0</update_rate>
<plugin name="nav_gps_plugin" filename="libgazebo_ros_gps_sensor.so">
<ros>
<!-- <namespace>/br</namespace> -->
<remapping>nav_gps_plugin/out:=gps</remapping>
<namespace>/demo</namespace>
<remapping>~/out:=gps</remapping>
</ros>
<frame_name>gps_link</frame_name>
</plugin>
<always_on>true</always_on>
<update_rate>100</update_rate>
<visualize>true</visualize>
<gps>

<longitude>
<mean>0.0</mean>
<stddev>2e-4</stddev>
<bias_mean>0.0000075</bias_mean>
<bias_stddev>0.0000008</bias_stddev>
</longitude>

<latitude>
<mean>0.0</mean>
<stddev>2e-4</stddev>
<bias_mean>0.0000075</bias_mean>
<bias_stddev>0.0000008</bias_stddev>
</latitude>

</gps>
</sensor>
<material>Gazebo/Grey</material> <!-- TODO: fix? --!>
<material>Gazebo/Grey</material> <!-- TODO: fix? -->
</gazebo>

</xacro:macro>


</robot>
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@
<xacro:wheel prefix="left" suffix="back" parent_link="chassis" reflect="1" x_position="${-chassis_length/2}"/>

<xacro:nav_imu/>
<xacro:nav_gps/>
</robot>

0 comments on commit 2cdefab

Please sign in to comment.