Gazebo | Ignition | Community
Ask Your Question
0

send velocity command to wheels of pioneer3at in standalone version of gazebo

asked 2013-05-10 14:45:57 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi all,

I installed standalone version of gazebo and i put a pioneer3at robot with laser scanner in environment, now i can get data of laser in my code but i don't know how can i send command to robot for moving in my code, i am new in gazebo and i want to test my navigation algorithm in simulated pioneer3at robot. i don't want to use ros, just i want to work with standalone version of gazebo, any one can help me?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2013-05-11 00:40:53 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

You can try and use the SkidSteerDrivePlugin to drive a pioneer3at.

Looking at the source code, it expects you to publish a pose msg to ~/your_model_name_here/vel_cmd topic

edit flag offensive delete link more

Comments

Sending a Pose msg to a vel_cmd topic just seems wrong..

SL Remy gravatar imageSL Remy ( 2013-05-15 12:47:02 -0500 )edit

why is it wrong? i want to test my navigation algorithm so i should can control the robot, so i think it is correct . if it is possible explain more about my wrong?

Vahid gravatar imageVahid ( 2013-05-16 09:18:59 -0500 )edit

A twist message seems more appropriate for a "velocity command" topic.. maybe these messages don't exist as yet?

SL Remy gravatar imageSL Remy ( 2013-05-16 10:22:55 -0500 )edit

yes, you are right, twist message is not exist, just pose message is exist for "velocity command" topic.

Vahid gravatar imageVahid ( 2013-05-24 02:12:56 -0500 )edit
0

answered 2013-05-24 02:20:17 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

In more detail for sending velocity command to a pioneer3at robot in standalone gazebo, we should uncomment skidsteerdriveplugin part in SDF file of pioneer3at or add this plugin to SDF file, and we should write a publisher like this that i explain in this question, now this publisher publish velocity command to vel_cmd topic and skidsteerdriveplugin subscribe to it and set velocity command to our pioneer3at robot in field.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-05-10 14:45:57 -0500

Seen: 1,000 times

Last updated: May 24 '13