Transfer a point(x,y,z) between frames
geometry_msgs::PointStamped initial_pt;
ros::Publisher odom_pub = node.advertise<geometry_msgs::vector3>("/visualization_marker", 1);
tf2_ros::Buffer tfBuffer;
tf2_ros::TransformListener tfListener(tfBuffer);
ros::Rate rate(10.0);
while (node.ok()){
geometry_msgs::TransformStamped transformStamped;
try{
transformStamped = tfBuffer.lookupTransform("/base_1", "/base_2", ros::Time(0));
}
catch (tf2::TransformException &ex) {
ROS_WARN("%s",ex.what());
ros::Duration(1.0).sleep();
continue;
}
geometry_msgs::PointStamped transformed_pt ;
?
?
?
Hi, I am trying to transfer a point from frame base_1 to base_2. Went through online search but not convinced how to proceed after this . tf2 listener tutorial Any help would be greatly appreciated.