ros-naoqi / naoqi_driver

c++ bridge based on libqi
Apache License 2.0
51 stars 93 forks source link

Pepper base_link is located in his torso #141

Closed tomkimsour closed 3 years ago

tomkimsour commented 3 years ago

Hello,

I'm running a mapping algorithm on rviz but i have problem with pepper transformation.

Currently running on ubuntu 16.04 with ros kinetic.

I have a problem, when visualizing in rviz, I get many errors of this type in tf :

no transform from [pepper robot/Bumper frame] to frame [odom]

Also I can see the base_link is not located at pepper's foot.

Does anyone have a clear explaination of what is happening ?

To me it looks like it's coming from the driver who doesn't handle odometry correctly.

mbusy commented 3 years ago

Hi, regarding the first part, it could be related to your rviz config. You could try and replace your config (make a backup) in ~/.rviz by this file (you'll have to rename it with the name of your previous config).

More generally, the transform between the base link and the odom can be specified in the launchfile (see this example)

For the second part, this is due to the fact that the naoqi framework places the "base link" of Pepper in its torso (as you can see here). If you are seeking a modified Pepper URDF (with a base_link located in the base footprint of the robot), you could use softbankrobotics-research's fork of naoqi_driver.

You should although be able to properly display the Pepper robot in RViz with this repo.

tomkimsour commented 3 years ago

Thanks for your answer. This one really helped me.

For the second part, this is due to the fact that the naoqi framework places the "base link" of Pepper in its torso (as you can see here). If you are seeking a modified Pepper URDF (with a base_link located in the base footprint of the robot), you could use softbankrobotics-research's fork of naoqi_driver.

Also for the error I don't properly remember how i manage to have it but i solved it by tweaking some parameters which i can't recall either.