thien94 / orb_slam3_ros_wrapper

A ROS wrapper for ORB-SLAM3. Focus on portability and flexibility.
166 stars 76 forks source link

Getting the odom, rather than Pose #3

Closed rakshith95 closed 3 years ago

rakshith95 commented 3 years ago

Hello @thien94 , Thank you for this wrapper. How can I get the mono_inertial_node to publish nav_msgs:Odometry information, which includes the twist information in addition to the Pose information?

thien94 commented 3 years ago

Hi @rakshith95 , thank you for the question.

As far as I know, only the pose data are provided by ORB-SLAM3 as it is. After looking into the code, I have a few ideas regarding how to obtain the linear velocities. However, how to obtain the angular velocities is a mystery to me. Furthermore, the covariance or uncertainty is not computed by ORB-SLAM3 for either pose or velocity. Hence, creating a proper nav_msgs:Odometry message is unlikely to be possible unless you figure out the above or accept that the message is incomplete.

Nonetheless, to obtain the velocity my suggestion is:

rakshith95 commented 3 years ago

Thank you for your response. I will update here, after attempting the above. Closing this now