Home | Tutorials | Wiki | Issues
Ask Your Question
0

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

asked 2016-02-18 04:52:21 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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.

edit retag flag offensive close merge delete

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 ;)

maiden gravatar imagemaiden ( 2016-02-19 09:08:21 -0500 )edit

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

nkoenig gravatar imagenkoenig ( 2016-02-19 09:10:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-02-19 10:40:38 -0500

nkoenig gravatar image

Don't put quotes around the names:

gz model -m robot -j knee -f 1000

edit flag offensive delete link more

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.

maiden gravatar imagemaiden ( 2016-02-19 10:47:04 -0500 )edit

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.

nkoenig gravatar imagenkoenig ( 2016-02-19 12:51:56 -0500 )edit

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)

maiden gravatar imagemaiden ( 2016-02-19 14:18:20 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-02-18 04:52:21 -0500

Seen: 429 times

Last updated: Feb 19 '16