[ros-users] Callback once
Prasad Dixit
prasad.dixit at fennecfoxtech.com
Fri Jun 25 10:36:59 UTC 2010
@Blaise and Josh:
Thanks for your help.
Its working now! I have made few changes by removing callback and straight
away writing a code like below:
geometry_msgs::PoseWithCovarianceStampedConstPtr msg =
ros::topic::waitForMessage<geometry_msgs::PoseWithCovarianceStamped>("amcl_p
ose");
ROS_INFO("Received X:[%f] :: Y:[%f] :: Z:[%f] ",
msg->pose.pose.position.x, msg->pose.pose.position.y,
msg->pose.pose.position.z);
- Prasad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100625/20e905ee/attachment-0003.html>
More information about the ros-users
mailing list