Re: [ros-users] tf error: frame base_link do not exist

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wim Meeussen
Date:  
To: ros-users
CC: ros-users
Subject: Re: [ros-users] tf error: frame base_link do not exist
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)