Robotics StackExchange | Archived questions

gz joint and SDF file, "Unable to find joint[robot::knee]"

See This: https://youtu.be/r2DEa_xAeV0

I have a SDF file: model.sdf
With the World file: set_joint.world
And the model plugin: set_joint.cc

I can control the joints from the model plugin but not directly with:

gz joint -m robot -j knee -f 1000

I get from gzserver (running verbose):

[Err] [JointController.cc:289] Unable to find joint[robot::knee]

However if i run
gz model -m robot -j knee -i
I get: model.msg
where i can see that :

joint {
  name: "robot::knee"
  id: 43
  angle: 0
  type: REVOLUTE
 ...

What am i missing?

UPDATE:
I have updated to Gazebo 7 and the joint moves with "gz joint -m robot -j knee -f 1000", but i still get the error "Unable to find joint[robot::knee].." strange that it manages to apply a force to a joint its unable to find ;)

I Uploaded files instead of linking to external source, used model.msg because .txt was not supported.

Asked by maiden on 2016-02-18 05:52:21 UTC

Comments

I have updated to Gazebo 7 and the joint moves with "gz joint -m robot -j knee -f 1000", but i still get the error "Unable to find joint[robot::knee].." strange that it manages to apply a force to a joint its unable to find ;)

Asked by maiden on 2016-02-19 10:08:21 UTC

The links above are broken. The gz model command applies a force to a model, the joint will move as a side effect.

Asked by nkoenig on 2016-02-19 10:10:35 UTC

Answers

Don't put quotes around the names:

gz model -m robot -j knee -f 1000

Asked by nkoenig on 2016-02-19 11:40:38 UTC

Comments

ah, that was just a typo in this post. I have fixed that now, I have used 'robot' and as you have written, but with the same result as in the post.. and as seen by " joint[robot::knee]" the gzserver gets the correct path to an existing object but it still generates an error.

Asked by maiden on 2016-02-19 11:47:04 UTC

I loaded your model using gazebo7 and this command causes the knee to move gz model -m robot -j knee -f 1000. Are you sure gazebo is loading the correct model? You might have another "robot" sdf file in a different location that Gazebo is finding.

Asked by nkoenig on 2016-02-19 13:51:56 UTC

Yes but if you run gzserver with verbose, do you get the same error message? I get the error message but the joint moves, i guess its some bug in the gzserver code.. (see the youtube video i added in the top of the question)

Asked by maiden on 2016-02-19 15:18:20 UTC