ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi @Govind,
If you take a look at the turtlebot3_world.launch file, they provided three parameters to stablish the XYZ Coordinates to spawn the model.
You can change those parameters in the file itself or provide your position values as arguments in the launch file:
roslaunch turtlebot3_gazebo turtlebot3_world.launch x_pos:=5 y_pos:=2 z_pos=0
On the other hand if you are using turtlebot 1 you will need to use the environmental variable ROBOT_INITIAL_POSE
provided in the include files. You can do this in a terminal:
export ROBOT_INITIAL_POSE="-x 5 -y 2 -z 0"