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

Controller not loading for a custom model running existing controller.

asked 2014-11-03 22:10:09 -0500

yashc gravatar image

Hi Everyone,

I am working on designing a custom robot, and getting it to work with a existing controller (namely the Joint Trajectory Action Controller).

The procedure I followed is as follows:

  1. I created a URDF file corresponding to the model.
  2. I created .yaml files to configure the controller for various joints in my system.
  3. I created launch files that would start the pr2_controller_manager, and then spawn the necessary yaml files as suggested in the PR2 Controller Tutorials (section 5.1 and 5.2).
  4. Finally, I first loaded the .urdf file to the param server (as a textfile argument). After this, I loaded the model in gazebo, and then ran the launch files mentioned in point 3 above.

Here are my observations:

  1. Everything runs fine until the controllers are to be loaded and started.
  2. I get no messages about whether any of my custom_joint_controllers are loaded/started.
  3. When I try and list the loaded controllers on the pr2_controller_manager, I get no output (basically, it looks like the controllers are not loaded).
  4. When I inserted a general PR2_Arm model to the gazebo world using the GUI, I got the following error: [ERROR] [1415062744.160051303, 65.157000000]: A joint named "custom_joint" is not part of Mechanism Controlled joints. for each of my custom_joints, and then all the controllers loaded and started running.

Can anyone help me in diagnosing what could be wrong here? (I'm slightly new to ROS, so this matter could be absolutely trivial, but since I didn't find any threads that talked about this, I decided to post a new thread.)

Thanks a lot!

edit retag flag offensive close merge delete

Comments

1

Could it be because my URDF model doesn't seem to have the <gazebo> blocks specified in this tutorial?

yashc gravatar image yashc  ( 2014-11-04 09:35:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-04 10:47:38 -0500

yashc gravatar image

I sorted out the issue by myself. The command that was used to convert URDF files to SDF, was not including the element that included the plugin I was using.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-03 22:10:09 -0500

Seen: 204 times

Last updated: Nov 04 '14