Get a navigation goal from laserscan
Hi everyone,
For some purpose, I want to publish a navigation goal(type geometry_msgs::PoseStamped
). Now I want to get the position and orientation from the laserscan data as fellows, how can i make it?
float ra = scan_msg->ranges[t];
float angle = scan_msg->angle_min + i * scan_msg->angle_increment;
the laserscan frame_id = "laser", the map frame_id = "map", and I have the tf tree laser->base_link->odom->map
.
Any suggestions. Thank You In Advance!!!
EDIT
I have solve the problem at this link
Could you please post your last edit as an answer, and then accept your own answer? That shows much more clearly that your question was answered than if you close it.
Thanks.