Skip to content

Commit

Permalink
added time delay to set start pose
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoussan committed Jul 9, 2024
1 parent 920c2e5 commit 6d88dc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion localization/localization_node/tools/set_start_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# under the License.
"""
Initializes the localizer with a defined pose by sending a ff_msgs VisualLandmarks message
with the pose value.
with the pose value. Note the pose is expected in the robot nav camera frame.
"""

import argparse
Expand All @@ -40,6 +40,9 @@ def publish_pose(pose):
msg = VisualLandmarks()
msg.header = std_msgs.msg.Header()
msg.header.stamp = rospy.Time.now()
# Subtract 2 seconds from stamp to simulate localization time,
# allows VIO messages to accrue that span before and after the vl message
msg.header.stamp.secs = msg.header.stamp.secs - 2
msg.header.frame_id = "world"
msg.camera_id = 0
# Set pose values
Expand Down

0 comments on commit 6d88dc8

Please sign in to comment.