David, Thanks for uncovering the issues with that particular plugin, but I think I forgot to mention a very important thing... I think I'd approach this problem differently. A better way to apply torque on the wheels is to use the pr2_controllers stack -- by adding a simple transmission and using the gazebo_ros_controller_manager plugin. I recommend taking a look at the package/example pr2_examples_gazebo/single_link.launch, and replacing the position controller with an effort controller. John On Mon, May 3, 2010 at 12:53 PM, David Ferguson wrote: > Hi, > > I am trying to write create a gazebo simulation of a 4 wheeled vehicle > (think golf cart). I am having an issue with trying to create forces in the > simulation. I want to apply a torque the rear wheels (equivalent to pressing > the gas pedal). I can't figure out however how to use the gazebo plugin > which is supposed to apply the force. In the .h file for the plugin it says > to use it as such: > > This is a controller that collects data from a ROS topic and applies > wrench to a body accordingly. > > Example Usage: > \verbatim > > > ... > > plugin="libgazebo_ros_force.so"> > true > 15.0 > box_force > box_body > > > \endverbatim > > To test it I essentially copied the tutorial showing how to use the iface > plugin (sets a models position). My urdf file is below: > > xmlns:controller=" > http://playerstage.sourceforge.net/gazebo/xmlschema/#controller" > xmlns:interface=" > http://playerstage.sourceforge.net/gazebo/xmlschema/#interface" > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Gazebo/Black > 10.0 > 10.0 > 10 > 1.0 > false > 0.01 > > > plugin="libgazebo_ros_force.so"> > true > 15.0 > box_force > object_link > > > > > I then have a python script publishing a wrench message to the box_force > topic however no matter what settings I use it never seems to actually > affect the box in the simulation. Am I going about this completely wrong? Is > there a flag I'm not setting? > > Thanks in advance for any help, > > David Ferguson > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > >