Home | Tutorials | Wiki | Issues
Ask Your Question
1

SkidSteerDrivePlugin

asked 2013-06-24 11:05:38 -0600

ZdenekM gravatar image

updated 2013-06-25 01:33:26 -0600

Hi all,

I'm trying to work with new skid steering drive plugin and URDF model of Pioneer 3AT. I included plugin to my URDF file, but still getting:

Error [Param.hh:249] Unable to set value [-nan -nan -nan 0 -0 0] for key[pose]
Error [Param.hh:249] Unable to set value [-nan] for key[ixx]
Error [Param.hh:249] Unable to set value [nan] for key[ixy]
Error [Param.hh:249] Unable to set value [-nan] for key[ixz]
Error [Param.hh:249] Unable to set value [-nan] for key[iyy]
Error [Param.hh:249] Unable to set value [-nan] for key[iyz]
Error [Param.hh:249] Unable to set value [nan] for key[izz]
Error [SkidSteerDrivePlugin.cc:51] Unable to find the right_front joint in model pioneer3at.
Error [SkidSteerDrivePlugin.cc:51] Unable to find the right_rear joint in model [INFO] [WallTime: 1372089505.447163] [0.489000] Spawn status: SpawnModel: Successfully spawned model
pioneer3at.
Error [SkidSteerDrivePlugin.cc:51] Unable to find the left_front joint in model pioneer3at.
Error [SkidSteerDrivePlugin.cc:51] Unable to find the left_rear joint in model pioneer3at.

This is how I included plugin:

<gazebo>
  <plugin name="SkidSteerDrivePlugin" filename="libSkidSteerDrivePlugin.so">
      <right_front>p3at_front_right_wheel_joint</right_front>
      <right_rear>p3at_back_right_wheel_joint</right_rear>
      <left_front>p3at_front_left_wheel_joint</left_front>
      <left_rear>p3at_back_left_wheel_joint</left_rear>
      <max_force>5.0</max_force>
  </plugin>
</gazebo>

ROS Groovy, Gazebo 1.8.6 compiled from source as well as gazeborospkgs.

I just briefly checked code of plugin and I'm not sure, but it looks like it searches for joints named "right_front" etc. and not for joints defined by these parameters. Am I right? Or could it be somehow related with NaN errors?

Thanks in advance.

Btw, what is prefered way to control robot from ROS? Use "pure" Gazebo plugin and ROS node for translating communication between Gazebo/ROS, or Gazebo plugin like those in gazeborospkgs? Second option looks better for me - are there any disadvantages?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2013-06-25 16:26:25 -0600

davetcoleman gravatar image

Hi,

Error [Param.hh:249] Unable to set value [-nan] for key[ixx]

This is from bad or missing values in your <inertia> tags. Make sure all the xx, yy, zz values are greater than zero, make sure there are no spaces inside the quotation marks, etc. Here's an example: <inertia ixx="2e-08" ixy="0" ixz="0" iyy="3e-08" iyz="0" izz="2e-08"/>

Error [SkidSteerDrivePlugin.cc:51] Unable to find the right_front joint in model pioneer3at.

From reviewing your code earlier during the pull request, I think I saw these 'right_front' values hard coded in. This needs to be fixed for sure.

what is prefered way to control robot from ROS?

roscontrol is the new preferred way to control robots, using the new gazeboros_control plugin. However, this is under heavy development for the Hydro release, but should stabilize in the next couple days.

edit flag offensive delete link more

Comments

Hi. Thanks for answers and some hints. Hard coded link names are in SkidSteerDrivePlugin plugin in Gazebo. Plugin I created (libgazebo_ros_skid_steer_drive.so, within gazebo_ros_pkgs) has no hard coded link names ;)

ZdenekM gravatar imageZdenekM ( 2013-06-26 02:02:49 -0600 )edit

Hi @ZdenekM, where can I find this plugin? I am having issues with the joints too. Thanks!

Martí Morta - IRI gravatar imageMartí Morta - IRI ( 2013-11-04 10:33:12 -0600 )edit

@Martí Morta - IRI You can find it in the package call gazeborospkgs. Documentation sits here: http://gazebosim.org/wiki/Tutorials/1.9/ROSMotorandSensorPlugins#SkidSteeringDrive

ZdenekM gravatar imageZdenekM ( 2013-11-05 06:53:55 -0600 )edit

thanks! the italics made the names confusing :)

Martí Morta - IRI gravatar imageMartí Morta - IRI ( 2013-11-05 08:03:58 -0600 )edit
0

answered 2019-03-28 10:25:18 -0600

babool gravatar image

I have the same type of problem. To resolve this fix error code 0x80004005 windows visit here.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2013-06-24 11:05:38 -0600

Seen: 2,268 times

Last updated: Jun 25 '13