Skip to content

Commit

Permalink
Make bookstore models static
Browse files Browse the repository at this point in the history
  • Loading branch information
fabid committed Feb 18, 2025
1 parent 2098637 commit ea24ec4
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sam_bot_nav2_gz/test/test_odometry_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def report_shutdown(self):
def gt_callback(self, msg: PoseArray):
#self.get_logger().info("Ground truth message received")
if self.gt_start_location is None:
self.gt_start_location = msg.poses[0].position
try:
self.gt_start_location = msg.poses[0].position
except IndexError:
return
self.current_location = Point(
x=msg.poses[0].position.x - self.gt_start_location.x,
y=msg.poses[0].position.y - self.gt_start_location.y
Expand Down
Loading

0 comments on commit ea24ec4

Please sign in to comment.