ethz-adrl / towr

A light-weight, Eigen-based C++ library for trajectory optimization for legged robots.
http://wiki.ros.org/towr
BSD 3-Clause "New" or "Revised" License
933 stars 234 forks source link

Rviz - Fixed Frame [world] does not exist #27

Closed rmbp closed 6 years ago

rmbp commented 6 years ago

Hi,

I'm running on a fresh master install, all working fine, except the URDF's aren't appearing in Rviz as: Global Status Warn - Fixed Frame: No tf data. Actual error: Fixed Frame [world] does not exist.

And subsequently there is a status error for all robots (in rviz), as there is no transform to the non existent frame.

Reinstalled ipopt, ifopt, xpp and towr and rebuilt the ws but no change.

Any ideas?

Thanks!

awinkler commented 6 years ago

Hi! You have to run the optimization ('o') at least once so the URDFs are shown, did you do this?

Also, can you verify that rviz shows the frame "world" like here: selection_187

rmbp commented 6 years ago

thanks for the quick reply.

I've optimised more than once, but still the same result, for all robot models. screenshot from 2018-07-18 18-19-01

awinkler commented 6 years ago

Alright, hm...this could be related to http://wiki.ros.org/xpp. You can try installing this from github source, instead of the ros binaries. There should be a node that transforms the cartesian footholds you see visualized to the joint angles for the URDF:

selection_190

rmbp commented 6 years ago

That did it! Thanks for your help.

awinkler commented 6 years ago

So installing xpp through the ROS binaries sudo apt-get install ros-kinetic-xpp caused the problem? If you can give me a bit more detail, maybe I can fix that :-)

rmbp commented 6 years ago

Yes it appears so. I purged ros-kinetic-xpp, then built xpp from source and now have no issues. What details would you like?

awinkler commented 6 years ago

I see, alright, that at least tells me the newest version is working. That will make it into the binaries soon as well. Thanks.