-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
turtlebot3_gazebo: no "odom" frame #219
Comments
It looks like a problem between turtlebot and gazebo. Perhaps you can check if ros-noetic-turtlebot3-gazebo is installed. If not, the model in gazebo may wrong. |
Hi @ZhoZhicheng, thank you for your idea. I listed my ROS-related |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using ROS Noetic on Ubuntu 20.04.6 LTS 5.10.104-tegra on a Jetson NX.
My ultimate goal is to run the example launch file for leggedrobotics/elevation_mapping_cupy, which uses turtlebot3_gazebo in its sourced elevation_mapping_cupy/launch/turtlesim_init.launch.
It gives me a lot of errors like:
"odom" passed to lookupTransform argument target_frame does not exist.
full log
Meanwhile the turtlebot in gazebo remains as a white blob.
![Screenshot from 2024-05-30 20-28-32](https://private-user-images.githubusercontent.com/731937/335319687-31327ec1-9997-4c30-9b38-0358abef1376.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzE5Njg3LTMxMzI3ZWMxLTk5OTctNGMzMC05YjM4LTAzNThhYmVmMTM3Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hYWQwOWFiZGJjNDYxM2IzYmRlYjk4MmI3NDcxZThhOWYzZDBiYTE0NzNmOGYzYWI2MWIyYWJkNjE3MWZlZjhlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.NiaONL0qWngs1Ti1CniTHVRy7njZybMVFn5lJoFxEvY)
@ZhoZhicheng opened elevation_mapping_cupy issue 78 for the same problem, and maintainer @mktk1117 closed the issue, stating that it is a turtlebot issue and not their problem. I followed up with the @ZhoZhicheng, who confirmed that it did indeed turn out to be a turtlebot bug which which was supposedly "easy to solve", although they cannot recall how...
The tf tree looks like this:
![frames](https://private-user-images.githubusercontent.com/731937/335308011-246d2085-d263-44a8-b3fa-9be9b39c4829.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzA4MDExLTI0NmQyMDg1LWQyNjMtNDRhOC1iM2ZhLTliZTliMzljNDgyOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yODc4YjIwNDFiY2NkZmRjYjI1ODJjYWMwMDFjODI2MjNmYjc5MmE5NTZlYzg2MzQwMjA5M2EyOTAyYTMzZjM0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.k6v6uFA-d3OyQxUDYlVY9bNVTsTQPxLsVrGsNsbXLAE)
So clearly, as stated in the error, there is no 'odom' frame, which I guess is supposed to be there.
I found two issues, both unresolved, where people described the "odom" frame being disconnected from the rest of the tree: turtlebot3 issue 7790 and turtlebot3_simulations issue 214. In both of those issues, the "odom" frame exists, but is disconnected from the rest of the tree. For me, it doesn't appear to exist at all. In the first of those two issues, @ROBOTIS-Ashe advised installing all dependent ROS packages and @DingoOz advised remembering to source
devel/setup.bash
in the catkin build directory, but OP @abdur78 did not respond further, and the issue remains open three years later. But in my case, I had already remembered to source my/devel/setup.bash
, as well as/opt/ros/noetic/setup.bash
. Doing so again did not resolve the issue. I had apparently not installed all of the dependent ROS packages, but installing those did not resolve the issue either.Before installing the missing dependent packages, I had these apt packages installed:
output of
apt list --installed | grep "^ros"
originallyThe following new packages were installed after following the commands given here to install dependent packages for noetic, but this did not help:
output of
apt list --installed | grep "^ros"
after installing dependent packagesI noticed that the author of this official video about getting started with TurtleBot3 in ROS1 Noetic cloned turtlebot3 and turtlebot3_simulations from the github repo and built with catkin, rather than installing them via apt. I tried that, they built fine, and I re-sourced, but this did not resolve the issue either.
With
![Screenshot from 2024-05-30 21-39-21](https://private-user-images.githubusercontent.com/731937/335341577-1ccd89db-5e94-437e-a143-4ec5454c8ecb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzQxNTc3LTFjY2Q4OWRiLTVlOTQtNDM3ZS1hMTQzLTRlYzU0NTRjOGVjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZWQ2NmRiMjE1YzNmM2Q4OGFjMGNmNGY3NTg3MjM3NzY0YThjMThjNWQxM2FkYWRmYjQzOTRkZTAwZTExNWViJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mvZRYyLf0Qp4TBYYjAEV-dHZ0b3mA9sl3KITKj_dc_0)
roslaunch turtlebot3_bringup turtlebot3_model.launch
, there's also no "odom":When I run
![Screenshot from 2024-05-30 20-56-41](https://private-user-images.githubusercontent.com/731937/335326841-b51c895c-93ad-4f65-b78e-a401b49459b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzI2ODQxLWI1MWM4OTVjLTkzYWQtNGY2NS1iNzhlLWE0MDFiNDk0NTliMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kODBhNTRiNjM1ZTc3OTk1OGQ2ZDA1NmVjMzJmYWU4OWU5OTU1ZTBlOTliYTQxYmE1MjBhNThlOTQxZjgzNmY5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.b8q3W2bL5QNCe4yJSZcNiFua7gqav-cduT1GV-RzXSg)
roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch
, the turtlebot visually appears in gazebo:However, no
![Screenshot from 2024-05-30 21-00-23](https://private-user-images.githubusercontent.com/731937/335328108-8b6462d6-e6db-4566-b8d1-921e5d9c4e2e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzI4MTA4LThiNjQ2MmQ2LWU2ZGItNDU2Ni1iOGQxLTkyMWU1ZDljNGUyZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MzA0NDE3NWJmMDYwMDUxMzAxYzNkMjVlMmYwMGFlY2MyNTg3NTM3MzY3ZDE5ZTkxODJiNzhhNWMzNGY0NmYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Xc3BvnkBB2XyyZE4LkaaJyVyFbgJ59Zh_i1iTUi8dwM)
tf
data seems to be published:It's the same with
![Screenshot from 2024-05-30 21-06-50](https://private-user-images.githubusercontent.com/731937/335329775-81fe107d-f32e-4af3-a3ba-3b7d0688a191.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzI5Nzc1LTgxZmUxMDdkLWYzMmUtNGFmMy1hM2JhLTNiN2QwNjg4YTE5MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wY2YzNjliOTlkZWM4NjM0ZDIzOGFiM2E2ODIyODA3MDZhMmQzMTliNzdlY2ZjNGMxNzZiZDYzOThhZWVlNTZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.lyP06tepdpjTKxHPQ0JpYciJFZIbc-yJu0n3WODnRVM)
roslaunch turtlebot3_gazebo turtlebot3_world.launch
:But with
![Screenshot from 2024-05-30 21-10-28](https://private-user-images.githubusercontent.com/731937/335331251-53c93783-e477-4ada-819d-c602334307b7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzMxMjUxLTUzYzkzNzgzLWU0NzctNGFkYS04MTlkLWM2MDIzMzQzMDdiNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xZTc5OWE3NGJkMzM4YjJhY2M1MGNhMDBiZDFjZTk4MGM2OTliY2QyOGFiOTZkZWJmNGY0YjlhYjkzN2Y1YTUyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.rMQLI6ZDnefYEUA73t4Pyup6KsD-0fZeih6_La_Ny04)
roslaunch turtlebot3_fake turtlebot3_fake.launch
, the tf tree shows up and includes "odom":In addition to experiencing the missing "odom" issue on the aforementioned bare-metal Jetson device, I am able to replicate it in a docker container built from the following
Dockerfile
I've made forelevation_mapping_cupy
:`Dockerfile` for `elevation_mapping_cupy`
I run the image with the following script, which assumes that the image is named
elevation_mapping_cupy
and whose purpose is to allow GUI programs to run through the host X server:`run.sh`
To run that exact image, you'll need an NVIDIA graphics card with CUDA and the NVIDIA container toolkit, plus an X server, and you'll need to adjust the base image and
pip install
ed major version ofcupy
. But the point with thisDockerfile
is to show that the missing "odom" behavior doesn't only happen only in one environment. I've run the built container on a completely different machine and architecture, and still don't see any "odom" frame. ThisDockerfile
doesn't include the so-called dependent ROS packages, but as I noted above, installing those didn't change anything with the missing "odom", and yes, I did try this also in the running docker container and re-sourcing.For a more minimal example, I made the following
Dockerfile
which includes all of the so-called dependent packages, doesn't require any GPU, and buildsturtlebot3_simulations
andturtlebot3_simulations
withcatkin_build
:minimal `Dockerfile` for turtlebot3 to illustrate issue
Run it with:
`run.sh`
Then in another window, to view the tf tree (replace
boring_noether
with the name of the running container, which you can get fromdocker ps
):With this, I again see no "odom":
![Screenshot from 2024-05-30 23-03-14](https://private-user-images.githubusercontent.com/731937/335362540-d57dbdbe-94cb-4f70-999c-932090671546.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTk3ODEsIm5iZiI6MTcyNDc5OTQ4MSwicGF0aCI6Ii83MzE5MzcvMzM1MzYyNTQwLWQ1N2RiZGJlLTk0Y2ItNGY3MC05OTljLTkzMjA5MDY3MTU0Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMjU4MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMGY1MGRjOGE3NTkxZTU2NzU1YTcwMmFmNjE0MjU3NTUxMjE5ZGMxNjA0OTBhODkyOTIzMDc0OTU2N2FkZjUzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.fOu_NM0zxDQNTMTigVVKkFx98_6YJWz2DEx4fdezLwM)
Am I missing something simple, or is this a bug? In the latter case, is there any fix or workaround?
The text was updated successfully, but these errors were encountered: