unitree-go2-ros2
unitree-go2-ros2 copied to clipboard
Spawn robot in a new world
Hello,
I have installed correctly the package. I could spawn the robot in an empty world in gazebo.
I tried to execute this command: ros2 launch go2_config gazebo.launch.py rviz:=true world:=worlds/outdoor.world , to spawn the robot model in a different virtual environment, but it did not work out.
How is it possible to spawn the robot in a different environment?
Thanks for any support.
Best regards, Eduardo
Check the following:
- Check the reference world in the
worldsdirectory. - Try first opening the world using
gazebo <world_file> --verbose - Try rebuilding the workspace and launch again.
it could seem that gazebo is stuck loading the map, it just needs a lot of time to load, so wait and it will come out sooner or later, i've used this command: ros2 launch go2_config gazebo.launch.py world:=$(ros2 pkg prefix go2_config)/share/go2_config/worlds/outdoor.world
I did fix it. Thanks for the responses! :)
@edugm94 may I know how you did it? thank you!
@edugm94 may I know how you did it? thank you!
Hi,
I just modified the launch file and add the path to the .world file.