Tf problem LookupTransform not working

asked 2017-05-25 23:36:34 -0500

chronius gravatar image

Hello,

My question is what is the equivalent code in c++ for the command "rosrun tf tf_echo <source_frame> <target_frame>". I already tried to use "listener.lookupTransform("/femur_6", "/coxa_6", ros::Time(0), transform);" but it always give me an error of the type " passed to lookupTransform argument target_frame does not exist." But it exists, if I run rosrun tf tf_echo .. it gives me the correct answer.

Thanks

edit retag flag offensive close merge delete

Comments

Does lookupTransform work for /femur_5 and /coxa_5, and all the rest? Also have a look at your TF tree in rqt: rosrun rqt_tf_tree rqt_tf_tree. Make sure it is all connected and that the publishers of TF's are correct.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-05-26 00:12:04 -0500 )edit