Node implementing the conversion of mocap messages and their publication on another topic.
The aim of the node is to take measurements published on the given input_topic (TwistStamped) and then publish that information on the output_topic according to the format suitable for it (VehicleStateMsg). Other than filling in the fields the new VehicleState message, the node performs calculation in the _correct_mocap_coordinates method to take into account the angular and linear offset between map (child frame in the generated tf tree) and mocap (father) frames. Furthemore, the node provides the velocity information of the vehicle.
A possible improvement, already detailed in the code, would be to also include in the published message the covariances given by the mocap publisher (currently set to zero).
Node implementing the conversion of mocap messages and their publication on another topic. The aim of the node is to take measurements published on the given input_topic (TwistStamped) and then publish that information on the output_topic according to the format suitable for it (VehicleStateMsg). Other than filling in the fields the new VehicleState message, the node performs calculation in the
_correct_mocap_coordinates
method to take into account the angular and linear offset between map (child frame in the generated tf tree) and mocap (father) frames. Furthemore, the node provides the velocity information of the vehicle. A possible improvement, already detailed in the code, would be to also include in the published message the covariances given by the mocap publisher (currently set to zero).