Closed ljaniec closed 2 years ago
Well, the problem is indeed strange. deps.repos
uses foxy branch for neo_simulation2. I would suggest you to change it to the galactic branch and retry it again. Also, please do check the documentation here for the setup of the simulation. Do let me know, if you still have trouble.
Also you do not have to export the gazebo models into your bashrc
. It is already taken care.
You need to export the MY_ROBOT
(desired robot) and the MAP_NAME
as shown here.
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.
I wanted to use MP400 as a model of AMR in my simulations, but Gazebo makes working with URDF models a bit hard... How could I fix it?
Relevant issues and links I have found:
/opt/ros/galactic/share/turtlebot3_gazebo
alreadyI have all used files there:
I wanted to use MP400 as a model of AMR in my simulations, but Gazebo makes working with URDF models a bit hard... How could I fix it?
For your application, you are just utilizing our URDF models and unfortunately, we do not have further resource to help you. This issue is more related with Gazebo and usage of SDF. My suggestion would be to post this issue in answers.ros.org ! I'm pretty sure someone can help you over there.
Closing the issue. Feel free to open a new issue, if you have any trouble with the pre-existing pipeline setup we have for the simulation.
Bug report
Steps to reproduce:
ros2_ws
, installaws-robomaker-small-warehouse-world
ROS2 Galactic package (binary) and the rest fromdeps.repos
(neobotix robot, simulation etc.)colcon build --symlink-install
source install/setup.bash
ros2 launch nav2_rosdevday_2021 system_launch.py
Part of my
.bashrc
file:Expected behavior
The simulation with one visible Neobotix MP 400 is rendered and Nav2 stack starts.
Actual behavior
The simulation doesn't have correctly rendered robot (screens below).
Additional information
What I tried:
reinstall Gazebo and Nav2 packages
I have found a similar bug there
this bug shows in Simple Commander Nav2 package too (TB3 is invisible, but not in "Collisions" view in Gazebo) - maybe it is something connected with these meshfile changes mentioned in the link above?
I mentioned it there and there - second one is quite similar (but the collision view suggests me that at least robot is rendered there, but invisible)
I checked URDF like there and it didn't show problems
Any suggestions how to fix it?