Skip to content

Commit

Permalink
confirmed buggy_state_converter is consistent with ros2bnya
Browse files Browse the repository at this point in the history
  • Loading branch information
TiaSinghania committed Jan 9, 2025
1 parent 36c7a97 commit 38bf052
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion rb_ws/src/buggy/buggy/buggy_state_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def convert_NAND_state(self, msg):
converted_msg.twist.covariance = msg.twist.covariance

# ---- 4. Linear Velocities in m/s ----
# TODO: Check if scalar velocity is coming in from msg.twist.twist.linear.x
# Convert scalar speed to velocity x/y components using heading (orientation.z)
speed = msg.twist.twist.linear.x # m/s scalar velocity
heading = msg.pose.pose.orientation.z # heading in radians
Expand Down
1 change: 0 additions & 1 deletion rb_ws/src/buggy/buggy/serial/ros_to_bnyahaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ def reader_thread(self):
odom.pose.pose.position.y = packet.northing
odom.pose.pose.orientation.z = packet.theta

# why this works: autonsystem only cares about magnitude of velocity so setting an arbitrary axis to the speed and leave other at 0 works.
odom.twist.twist.linear.x = packet.velocity
odom.twist.twist.angular.z = packet.heading_rate

Expand Down

0 comments on commit 38bf052

Please sign in to comment.