Skip to content

Commit

Permalink
fake localization for maqui
Browse files Browse the repository at this point in the history
  • Loading branch information
Luz Martinez committed Jul 27, 2017
1 parent b966fbe commit 2ebde42
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
8 changes: 7 additions & 1 deletion launch/localization/odometry.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
<include file="$(find uchile_maps)/launch/map_analyzer.launch"/>

<!-- fake localization -->
<node pkg="tf" type="static_transform_publisher" name="tf_fake_localization" args="0 0 0 0 0 0 /map /odom 20" />
<node pkg="fake_localization" type="fake_localization" name="fake_localization" ns="/maqui/nav/">
<remap from="base_pose_ground_truth" to="/maqui/nav/odom"/>
<remap from="initialpose" to="/maqui/nav/initialpose"/>
<remap from="amcl_pose" to="/maqui/nav/amcl_pose"/>
<remap from="particlecloud" to="/maqui/nav/particlecloud"/>
<rosparam file="$(find maqui_bringup)/params/localization/fake.yaml" command="load"/>
</node>

</launch>
24 changes: 24 additions & 0 deletions params/localization/fake.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# delta_x (double, default: 0.0)
# The x offset between the origin of the simulator coordinate frame and the map coordinate frame published by fake_localization.
delta_x: 0

# delta_y (double, default: 0.0)
# The y offset between the origin of the simulator coordinate frame and the map coordinate frame published by fake_localization.
delta_y: 0

# delta_yaw (double, default: 0.0)
# The yaw offset between the origin of the simulator coordinate frame and the map coordinate frame published by fake_localization.
delta_yaw: 0

# global_frame_id (string, default: /map)
# The frame in which to publish the global_frame_id→odom_frame_id transform over tf. New in 1.1.3
global_frame_id: "/map"

# odom_frame_id (string, default: "odom")
# The name of the odometric frame of the robot.
odom_frame_id: "/odom"

# base_frame_id (string, default: base_link)
# The base frame of the robot. New in 1.1.3
base_frame_id: "/base_footprint"

0 comments on commit 2ebde42

Please sign in to comment.