Skip to content

Commit

Permalink
Fix compile error with new Eigen on implicit Eigen typecasts.
Browse files Browse the repository at this point in the history
  • Loading branch information
helenol committed Sep 2, 2017
1 parent 897b6e9 commit c6e67f8
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ class HilListeners {
ROS_ASSERT(hil_data);

// MAVLINK HIL_GPS message measures GPS velocity in cm/s
hil_data->gps_vel_cm_per_s = Eigen::Vector3i(ground_speed_msg->twist.linear.x,
ground_speed_msg->twist.linear.y,
ground_speed_msg->twist.linear.z) * kMetersToCm;
hil_data->gps_vel_cm_per_s =
(Eigen::Vector3f(ground_speed_msg->twist.linear.x,
ground_speed_msg->twist.linear.y,
ground_speed_msg->twist.linear.z) *
kMetersToCm)
.cast<int>();

hil_data->vel_1e2m_per_s = hil_data->gps_vel_cm_per_s.norm();
}
Expand Down

0 comments on commit c6e67f8

Please sign in to comment.