dawonn / vectornav

ROS Interface for the VectorNav IMU/GPS
147 stars 179 forks source link

Make ENU conversion a parameter #119

Closed BTK203 closed 1 year ago

BTK203 commented 1 year ago

Hi! This PR makes the recently added ENU conversion a feature that can be enabled or disabled by setting a parameter on the vn_sensor_msgs node. This allows users to choose between using ENU, which obeys the ROS standard, and NED, which obeys the coordinate frames printed on the IMUs. The parameter in question is a boolean value called use_enu; if its value is true, then raw values from the IMU are converted to ENU frame before being published. Otherwise, the values are left alone and published in the NED frame. The parameter is only read on driver startup to prevent users from flipping coordinate frames in runtime.

I have left the default value of the parameter as true (ENU) because that is the current driver behavior. However, it makes more sense for the default to be false (NED) because it obeys the coordinate frame printed on VectorNavs IMUs. I will leave this up to your discretion.

Thanks!

dawonn commented 1 year ago

Thanks