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

Issues with Planar Move Plugin

asked 2019-05-29 19:52:08 -0500

atkinsc98 gravatar image

I'm currently running the planar move plugin example found here on kinetic and Ubuntu 16.04, and encountered some issues. I put the provided code into a URDF file exactly as given and launched it both directly and through a .launch file. The box spawns into the Gazebo environment and sits still. I know that the collision frame is a cylinder underneath the visual box, but the plugin seemingly does nothing. There is no explanation whether or not I need to insert more lines into the code in order to get the desired motion and I cannot find any documentation on what is needed. Does anybody know what to do to get it moving?

edit retag flag offensive close merge delete

Comments

1

Not an answer, but: just adding the plugin doesn't cause anything to move. Just making sure.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-30 01:57:29 -0500 )edit

Are you saying that the planar motion plugin does not command objects to do anything on its own?

atkinsc98 gravatar image atkinsc98  ( 2019-05-30 09:23:13 -0500 )edit

Exactly. Did you expect it to do that?

gvdhoorn gravatar image gvdhoorn  ( 2019-05-30 09:41:12 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-11-12 23:51:02 -0500

It's a bit too late to answer this question, but i'll write it to be a guide for others who may have same problem.

Planar move plugin won't drive your robot until you command it to. if you type rostopic list in your terminal, you probably see a list of all topics that are running, one of which is /[robot_ns]/cmd_vel or whatever you assigned to be the velocity command topic to be (you can assign the name of velocity command topic to be whatever you want in URDF file, under corresponding gazebo/plugin tag). you can move your robot by manually publishing a twist type message through cmd_vel topic like this:

rostopic pub /[robot_ns]/cmd_vel geometry_msgs/Twist "linear:
  x: 0.1 
  y: 0.0
  z: 0.0
angular:
  x: 0.0
  y: 0.0
  z: 0.0"

remember to replace [robot_ns] with your robot namespace. it's just a basic and simple example of how planar move plugin works. you can connect the velocity command topic to any package that commands velocity with twist type messages.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2019-05-29 19:52:08 -0500

Seen: 946 times

Last updated: Nov 12 '21