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

Revision history [back]

I would suggest a slight modification to what Röhling has suggested.

Modify the willow-erratic.world file slightly, towards the end of the file add ctrl "wander" as shown;

# throw in a robot
erratic( pose [ -11.277 23.266 0 180.000 ] name "era" color "blue" ctrl "wander")
block( pose [ -13.924 25.020 0 180.000 ] color "red")

and now if you try the command

rosrun stage stageros `rospack find stage`/world/willow-erratic.world

you should see the erratic robot move around in a 'wander' mode - moving around randomly avoiding obstacles.

I would suggest a slight modification to what Röhling has suggested.

You can locate willow-erratic.world file at /opt/ros/diamondback/stacks/simulator_stage/stage/world. Modify the willow-erratic.world that world file slightly, towards the end of the file add ctrl "wander" as shown;

# throw in a robot
erratic( pose [ -11.277 23.266 0 180.000 ] name "era" color "blue" ctrl "wander")
block( pose [ -13.924 25.020 0 180.000 ] color "red")

and now if you try the command

rosrun stage stageros `rospack find stage`/world/willow-erratic.world

you should see the erratic robot move around in a 'wander' mode - moving around randomly avoiding obstacles.

I would suggest a slight modification to what RöhlingRöhling's has suggested.approach.

You can locate willow-erratic.world file at /opt/ros/diamondback/stacks/simulator_stage/stage/world. Modify that world file slightly, towards the end of the file add ctrl "wander" as shown;

# throw in a robot
erratic( pose [ -11.277 23.266 0 180.000 ] name "era" color "blue" ctrl "wander")
block( pose [ -13.924 25.020 0 180.000 ] color "red")

and now if you try the command

rosrun stage stageros `rospack find stage`/world/willow-erratic.world

you should see the erratic robot move around in a 'wander' mode - moving around randomly avoiding obstacles.

I would suggest a slight modification to what Röhling's approach.

You can locate willow-erratic.world file at /opt/ros/diamondback/stacks/simulator_stage/stage/world. Modify that world file slightly, towards the end of the file add ctrl "wander" "wander" as shown;

# throw in a robot
erratic( pose [ -11.277 23.266 0 180.000 ] name "era" color "blue" ctrl "wander")
block( pose [ -13.924 25.020 0 180.000 ] color "red")

and now if you try the command

rosrun stage stageros `rospack find stage`/world/willow-erratic.world

you should see the erratic robot move around in a 'wander' mode - moving around randomly avoiding obstacles.

I would suggest a slight modification to what Röhling's approach.

You can locate willow-erratic.world file at /opt/ros/diamondback/stacks/simulator_stage/stage/world. Modify that world file slightly, towards the end of the file add ctrl "wander" as shown;

# throw in a robot
erratic( pose [ -11.277 23.266 0 180.000 ] name "era" color "blue" ctrl "wander")
block( pose [ -13.924 25.020 0 180.000 ] color "red")

and now if you try the command

rosrun stage stageros `rospack find stage`/world/willow-erratic.world

you should see the erratic robot move around in a 'wander' mode - moving around randomly avoiding obstacles.