ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to I set a robot pose in stage

asked 2012-03-12 04:34:05 -0500

Markus Bader gravatar image

Hi

is it possible to set the pose [x,y, alpha] of the simulated robot in stage via ROS?

Greetings

edit retag flag offensive close merge delete

Comments

I would like to set the robots pose while the simulator is running. Any ideas?

Markus Bader gravatar image Markus Bader  ( 2012-03-13 00:29:18 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
-1

answered 2012-03-12 05:01:16 -0500

lucascoelho gravatar image

Are you talking about setting the initial position? You can set this by modifying your .world file. Example:

roomba( pose [ 3.2 8 0 0 ] name "roomba_0" color "red")

where roomba is the name of the model of my robot. The first argument of pose is the x position, the second is y position, third z position and the last is the orientation of the robot.

Another way to set the robot's position is to click on it and drag to the desired position.

edit flag offensive delete link more

Comments

Hello Lucas I would like to set the robots pose while the simulator is running.

Markus Bader gravatar image Markus Bader  ( 2012-03-13 00:26:49 -0500 )edit

Hello Lucas

Markus Bader gravatar image Markus Bader  ( 2012-03-13 00:26:51 -0500 )edit

If you want to set the robot's position while the simulator is running, you can click on the robot and drag it to the position that you want.

lucascoelho gravatar image lucascoelho  ( 2012-03-13 03:07:43 -0500 )edit

Hello and thanks for your comments. But I like to set and change the pose of the robot while the simulation is running. I have to run tests and I do not want to place the robot always with the mouse. Greetings and thanks again

Markus Bader gravatar image Markus Bader  ( 2012-05-21 06:13:18 -0500 )edit

Hello,did you find a solution to this? can you share it? thanks

Victor_ocv2 gravatar image Victor_ocv2  ( 2013-04-24 08:56:53 -0500 )edit
1

answered 2012-03-12 06:02:51 -0500

updated 2012-03-12 21:02:52 -0500

In agreement with lucascoelho, I cite an example. If you check out this tutorial, http://www.ros.org/wiki/stage/Tutorials/IntroductiontoStageControllers and have a look at the roomba-wander.world file, then

pose [ -8 6 0 0 ]

is the pose [x y z alpha] that you are looking for; x = -8, y = 6, z = 0 and alpha = 0.

Once the simulation has started, you can see the realtime pose, by clicking on the robot.

image description

edit flag offensive delete link more

Comments

Hello Arkapravo, I would like to set the robots pose while the simulator is running. Any ideas?

Markus Bader gravatar image Markus Bader  ( 2012-03-13 00:27:35 -0500 )edit

Question Tools

Stats

Asked: 2012-03-12 04:34:05 -0500

Seen: 2,642 times

Last updated: Mar 12 '12