[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: nitinDhiman
Date:  
To: ros-users
Subject: [ros-users] tf error: frame base_link do not exist

Hello everybody,
I have boxturtle installed using debs. I am trying to interact with pioneer
3dx. I have following launch file

<node pkg="tf" type="static_transform_publisher" name="sonar1_to_baseLink"
args="-0.1 -0.13 -0.08 1.57 0 0 base_link sonar1 100"/>
    
<node pkg="p2os_driver" type="p2os" name="p2os" >
        
        
</node>

I listening to transform using code, which is similar to tutorial in tf:

#include <ros/ros.h>
#include <tf/transform_listener.h>


int main(int argc, char ** argv)
{
ros::init(argc, argv, "sonar1_tf_listener");

ros::NodeHandle node;

   tf::TransformListener listener;
   ros::Rate rate(10.0);
   while(node.ok())
   {
     tf::StampedTransform transform;
     try
     {


listener.lookupTransform("base_link","sonar1",ros::Time(0),transform);
     } catch(tf::TransformException ex){
       ROS_ERROR(" %s ", ex.what());
     }


     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());
   //  ROS_INFO(" Quaterion x=%f y=%f z=%f w=%f
",transform.getRotation().x() , transform.getRotation().y(),
transform.getRotation().z(), transform.getRotation().w());
   rate.sleep();
   }


return 0;
}

I am getting following error which I am not able to resolve :
nitin@tangri:/opt/ros/boxturtle/experimental/pioneer-interaction$ rosrun
pioneer-interaction tfListenerSonar1
[ERROR] 1280226258.499191000: Frame id /base_link does not exist! When
trying to transform between /sonar1 and /base_link.


I have some previous posts about such errors but no help. Frames are
connected correctly as odom-->base_link-->sonar1
Thanks
nitin
--
View this message in context: http://ros-users.122217.n3.nabble.com/tf-error-frame-base-link-do-not-exist-tp998832p998832.html
Sent from the ROS-Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
ros-users mailing list

https://lists.sourceforge.net/lists/listinfo/ros-users