Skip to content
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

Can't open gazebo11,in tb3_simulation_launch.py #2730

Closed
fantasyplus opened this issue Dec 7, 2021 · 12 comments
Closed

Can't open gazebo11,in tb3_simulation_launch.py #2730

fantasyplus opened this issue Dec 7, 2021 · 12 comments
Labels
question Further information is requested

Comments

@fantasyplus
Copy link

fantasyplus commented Dec 7, 2021

operating system: Ubuntu20.04
ros disto: rolling
nav version: main branch

Screenshot from 2021-12-07 15-11-37

Screenshot from 2021-12-07 15-11-34

I tried this demo with the virtual machine yesterday and encountered the same problem. I thought it's the virtual machine reason.

Today, I install the 20.04 physically.

The result is the same,Gazebo can't be opened.

And error is same,[composed_bringup-9] [INFO] [1638861125.504970819] [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist

Can someone tell me why?

@SteveMacenski
Copy link
Member

SteveMacenski commented Dec 7, 2021

I don't see this on my side. Search up your log files and see what's missing, my guess there's something else going on there, like Gazebo had other errors or wasn't able to load the robot into simulation. Do you see the TB3 and data being produced by it in Gazebo, irregardless of Nav2? You could very well just be missing the TB3 package / gazebo model paths. See the getting started guide on our documentation https://navigation.ros.org/getting_started/index.html

@SteveMacenski SteveMacenski added the question Further information is requested label Dec 7, 2021
@SteveMacenski
Copy link
Member

Have you figured out your issue?

@SteveMacenski
Copy link
Member

SteveMacenski commented Dec 15, 2021

Closing from lack of response and not able to reproduce locally or in CI. Happy to discuss if the user comes back or on ROS Answers. Sounds like its a gazebo issue that is hasn't totally spawned or the something is crashing. Logging would indicate the second, seeing the gazebo world would indicate the first

@Nathan24zz
Copy link

Nathan24zz commented Dec 21, 2021

I also got the same error (the gazebo can't be opened when running ros2 launch nav2_bringup tb3_simulation_launch.py).
Error that shows in terminal like [local_costmap.local_costmap]: Timed out waiting for transform from base_link to odom to become available, tf error: Invalid frame ID "odom" passed to canTransform argument target_frame - frame does not exist.
Can someone give me a solution?

OS: Ubuntu 20.04
ros distro: foxy

@irfanbadshah
Copy link

I have the same issue..

Any idea on how to fix it?
ros distro: galactic

@miku54
Copy link

miku54 commented Jun 1, 2022

SOS!!!!!!!!Me too! Looking forward to a workaround!
OS: Ubuntu 20.04
ros distribution: galactic

@Ryujiyasu
Copy link

Hi @miku54 you should check GAZEBO_MODEL_PATH,
I checked below
GAZEBO_MODEL_PATH ☓ -> no working
GAZEBO_MODEL_PATH ○ -> working

Ex.My Env
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/ubuntu/data/nav2_ws/src/turtlebot3_simulations/turtlebot3_gazebo/models

Thank you!!

@Ryujiyasu
Copy link

OS: Ubuntu 20.04
ros distribution: galactic

@Ryujiyasu
Copy link

#2757

@miku54
Copy link

miku54 commented Jun 2, 2022

#2757

I tried doing this, but still can't start gazebo from the command line in the terminal. ><

@miku54
Copy link

miku54 commented Jun 2, 2022

#2757

Solved! I added an extra '--verbose' thanks! ありがとう!

@KennySoh
Copy link

I had the same issue. I was trying to run the turtlebot3 simualtion with foxy.
Seems like there something wrong with gazebo

I managed to fix it by following the instruction below.

https://classic.gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros

source /usr/share/gazebo/setup.sh.  #this seems to fix gazebo
killall gzserver 
ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py. #Able to start gazebo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants