Open ljaniec opened 3 years ago
Hi @ljaniec
The turtlebot3_simulations package became independent from the turtlebot3 package and had to keep separate modeling files. The modeling files in the simulations package has been extremely simplified in order to minimize the size of the package which had been requested from several developers.
In order to use more realistic design of the robot, you may use the mesh files in the turtlebot3_description package. https://github.com/ROBOTIS-GIT/turtlebot3/tree/master/turtlebot3_description/meshes
I'll try to come up with a solution that can easily switch the modeling files without increasing the size of the default package. Please let me know if you have any thoughts for this.
Thanks!
Hello,
I prepared a small set of commands to show, what I think the problem is.
ros2 launch gazebo_ros gazebo.launch.py
ros2 run gazebo_ros spawn_entity.py -file /opt/ros/galactic/share/turtlebot3_gazebo/models/turtlebot3_waffle/model.sdf -entity robot01
It spawns TB3 Waffle normally (visible model and LiDAR).
ros2 launch gazebo_ros gazebo.launch.py
ros2 run gazebo_ros spawn_entity.py -file /opt/ros/galactic/share/nav2_bringup/urdf/turtlebot3_waffle.urdf -entity robot01
Surprisingly, it spawns invisible TB3 Waffle. It is visible only in the 'Collision' view in Gazebo. No LiDAR too.
ros2 launch gazebo_ros gazebo.launch.py
gz sdf -p turtlebot3_waffle.urdf > turtlebot3_waffle.sdf
ros2 run gazebo_ros spawn_entity.py -file ~/Desktop/turtlebot3_waffle.sdf -entity robot01
TB3 is invisible (but it's there, after launching 'Collision' view in Gazebo).
ros2 launch gazebo_ros gazebo.launch.py
ros2 run gazebo_ros spawn_entity.py -file ~/mp_400/mp_400.urdf -entity robot01
Robot is invisible, there are only blobs in the air and a LiDAR.
gz sdf -p mp_400.urdf > mp_400.sdf
ros2 run gazebo_ros spawn_entity.py -file ~/mp_400/mp_400.sdf -entity robot01
Robot is again invisible, there are only blobs in the air and a LiDAR.
Relevant issues and links I have found:
/opt/ros/galactic/share/turtlebot3_gazebo
alreadyI have all used files there:
Bug report
Steps to reproduce:
aws-robomaker-small-warehouse-world
andnav2-simple-commander
ROS2 Galactic packages (binaries)ros2 launch nav2_simple_commander inspection_demo_launch.py
Part of my
.bashrc
file:Expected behavior
The simulation with one visible TB3 rendered and Nav2 stack + demo script start.
Actual behavior
The simulation doesn't have correctly rendered robot (screens below). Autonomy demo still works (robot moves, LiDAR can be seen etc).
Additional information
What I tried:
reinstall Gazebo and Nav2 packages
I have found a similar bug there
I checked URDF like there and it didn't show problems
this bug shows in this package too (
nav2_rosdevday_2021
, there ), one with MP 400 (the robot is invisible, in "Collisions" view in Gazebo too - unlike there with TB3) - maybe it is something connected with these meshfile changes mentioned in the first link above?Am I doing something wrong there? Standard simulation (1 TB3 in TurtleWorld) is working fine - robot model loads etc. The discrepancy between simulations with the same model (AFAIK) is surprising to me.