[ros-users] tf error: frame base_link do not exist
Wim Meeussen
meeussen at willowgarage.com
Tue Jul 27 17:30:47 UTC 2010
Nitin,
> ROS_INFO(" x=%f y=%f z=%f child=%s frameId=%s ", transform.getOrigin().x(),
> transform.getOrigin().y(), transform.getOrigin().z(), transform.frame_id_,
> transform.child_frame_id_);//, transform.getOrigin().yaw());
>
> But then how to get frame names? frame_id_ is a public member in Class
> StampedTransform!
To pass a string to ROS_INFO, you need to apply the .c_str() method.
The compiler should have given you a warning about this.
E.g. ROS_INFO("a string %s", my_string.c_str());
Wim
--
--
Wim Meeussen
Willow Garage Inc.
<http://www.willowgarage.com)
More information about the ros-users
mailing list