tf2 conversion (bullet to geometry_msgs)
I wish to convert from Gazebo math::Pose
type to one of the geometry_msgs
ROS messages.
I can convert from math::Pose
to btTransform
using BulletTypes.hh.
I have tried with tf2::convert()
method following the tutorial, but it fails:
btTransform bt_T = physics::BulletTypes::ConvertPose(model_->GetLink("link")->GetWorldPose());
tf2::Stamped<btTransform> bt_T_stamped(bt_T, ros::Time::now(), "world");
geometry_msgs::TransformStamped T;
tf2::convert(bt_T_stamped, T);
I can obviously do this by hand, but is it there a way to use the tf2::convert()
method properly?
EDIT: you can find the error log in this Gist.
Why doesn't it work? What error message do you get?
@ahendrix I have added the error log.