transform a point from pointcloud
i want to set a goal at the side of a pointcloud. i have the x y z of the point from the pointcloud, but i need to transform it into the right frame. I went through the tf tutorials and I tried with a simple tf listener:
geometry_msgs::PointStamped theGoal;
tf::TransformListener listener;
ros::NodeHandle node;
ros::Rate rate(10.0);
while (node.ok()){
tf::StampedTransform transform;
try{
listener.lookupTransform("/move_base_simple/goal", "/camera/rgb/points", ros::Time(0), transform);
}
catch (tf::TransformException ex){
ROS_ERROR("%s",ex.what());
}
}
but now i dont know how to set the msg for move_base_simple/goal
i also tried with transformPoint, but it only works with geometry_msgs::PointStamped, i tried with transformPointCloud, but then i just get another sensor_msgs/PointCloud2 pointcloud
i just want to transform one point so i can use it to set a goal, i would even multiply it myself if someone would tell me the angles of the difference between the two frames.
i m using ubuntu 10.04, ROS electric, pcl 1.1, robot platform turtlebot