RafBerkvens / ua_ros_p3dx

A ROS/Gazebo Pioneer 3DX model.
GNU General Public License v3.0
11 stars 7 forks source link

Errors showing the robot in gazebo #1

Open End-Effector opened 9 years ago

End-Effector commented 9 years ago

Thank you so much for this package!

I'm trying your package and when I roslaunch the gazebo.launch I get several errors. The robot still loads but some pieces are missing. I'm using last version of ubuntu and ros-indigo with gazebo_ros.

List of errors & warnings:

[ERROR] [1425048528.112989998, 0.466000000]: No valid hardware interface element found in joint 'base_left_wheel_joint'. [ERROR] [1425048528.113168791, 0.466000000]: Failed to load joints for transmission 'base_link_left_wheel_trans'. [ERROR] [1425048528.113212861, 0.466000000]: No valid hardware interface element found in joint 'base_right_wheel_joint'. [ERROR] [1425048528.113248201, 0.466000000]: Failed to load joints for transmission 'base_link_right_wheel_trans'. [ INFO] [1425048528.351695911, 0.466000000]: Loaded gazebo_ros_control. [ INFO] [1425048528.473662676, 0.466000000]: Starting plugin DiffDrive(ns = //)! [ WARN] [1425048528.473773444, 0.466000000]: DiffDrive(ns = //): missing default is na [ INFO] [1425048528.476052292, 0.466000000]: DiffDrive(ns = //): = [ WARN] [1425048528.476219562, 0.466000000]: DiffDrive(ns = //): missing default is false [ WARN] [1425048528.476261257, 0.466000000]: DiffDrive(ns = //): missing default is false [ WARN] [1425048528.476351003, 0.466000000]: DiffDrive(ns = //): missing default is 0 [ WARN] [1425048528.476399543, 0.466000000]: DiffDrive(ns = //): missing default is 5 [ WARN] [1425048528.476523022, 0.466000000]: DiffDrive(ns = //): missing default is 1 [ WARN] [1425048528.476661168, 0.466000000]: GazeboRosDiffDrive Plugin (ns = ) missing , defaults to 1

End-Effector commented 9 years ago

I investigated and I fixed the ERRORS.

In file pioneer3dx_wheel.xacro line 108 change to this:

  <joint name="base_${suffix}_wheel_joint">
  <hardwareInterface>EffortJointInterface</hardwareInterface>
  </joint>

because of this: http://answers.ros.org/question/186681/no-valid-hardware-interface-element-found-in-joint/

Parts of the robot are still not showing up. Like the yellow wheels caps...

RafBerkvens commented 9 years ago

Thanks for suggesting the fix!