Skip to content

Commit

Permalink
twist (velocity) in odometry message should be in the child (vehicle)…
Browse files Browse the repository at this point in the history
… coordinate frame
  • Loading branch information
Michael Boulet committed Feb 3, 2016
1 parent 221bd86 commit d7358d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vesc_ackermann/src/vesc_to_odom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ void VescToOdom::vescStateCallback(const vesc_msgs::VescStateStamped::ConstPtr&
odom->pose.covariance[7] = 0.2; ///< y
odom->pose.covariance[35] = 0.4; ///< yaw

// Velocity
odom->twist.twist.linear.x = x_dot;
odom->twist.twist.linear.y = y_dot;
// Velocity ("in the coordinate frame given by the child_frame_id")
odom->twist.twist.linear.x = current_speed;
odom->twist.twist.linear.y = 0.0;
odom->twist.twist.angular.z = current_angular_velocity;

// Velocity uncertainty
Expand Down

0 comments on commit d7358d9

Please sign in to comment.