turtlebot / turtlebot4_simulator

TurtleBot 4 Simulator packages
Apache License 2.0
67 stars 36 forks source link

TB4lite Sim with world:=maze starts with TB4 half inside obstacle #27

Closed slowrunner closed 11 months ago

slowrunner commented 1 year ago

Please provide the following information:



 **Expected behaviour**
TB4lite to start docked in an unobstructed area of maze world

 **Actual behaviour**
 TB4lite is half embedded into maze obstacle

**To Reproduce**

1. ros2 launch turtlebot4_ignition_bringup ignition.launch.py model:=lite world:=maze

![TB4lite_Embedded_Maze](https://user-images.githubusercontent.com/8950202/201755958-4f44062f-f214-4bba-83df-a21a772617bd.jpg)
slowrunner commented 1 year ago

Work around for time being is to click on the obstacle and select remove. Then undock action will succeed.

Or work around that preserves the maze:

1) Shift Drag Mouse Down to be looking down on world 2) Cntrl scroll Mouse Down to zoom out a little 3) Click "Translate Mode" Button (4 dir arrow cross) 4) Click on TB4lite to see three colored axis line "handles" 5) Click-Drag on green "y axis" handle or red "x axis" handle to move TB4 to an open grid crossing 6) Click on dock to show x,y,z axis handles 7) Click-Drag on green "y axis" handle or red "x axis" handle to move dock close to the TB4 again 8) Click Select Mode: Use "Rotate View" (shift drag) and "Zoom View" (cntrl drag) to view dock and TB4lite from side 9) Click Translate Mode: Adjust dock to be under TB4lite 10) Hamburger Menu: "Save World", Browse to desired folder, enter: mymaze.sdf and click OK
11) Close Gazebo, ctrl-c in shell to stop nodes
12) chmod 666 mymaze.sdf 13) sudo cp mymaze.sdf /opt/ros/galactic/share/turtlebot4_ignition_bringup/worlds/ 14) Start sim with new model: ros2 launch turtlebot4_ignition_bringup ignition.launch.py model:=lite world:=mymaze 15) Shift Mouse Drag Down to be looking down on world, zoom out to view world 16) Hamburger: Save Client Configuration 17) Click "Play Button" to start sim 18) In another shell Check /dock status (ros2 topic echo /dock): "is_docked: true"

MoveTB4lite_and_dock MovingDock mymaze_docked