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

joint_state_publisher zeros param

asked 2014-12-06 12:43:48 -0600

Hi all, I have to set a default value in my launch file containing a joint_state_publisher. I saw in the documentation that there is a parameter "zeros" to do it but I can not figure how to use it. If I have two joints named "joint0" and "joint1" and my default value is 0.7 for both, how have I to write the launch file? Thanks

edit retag flag offensive close merge delete

Comments

If someone can point to me an example launch file I will check it, thanks.

Enrico gravatar image Enrico  ( 2014-12-09 08:51:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-12-10 01:56:52 -0600

Adolfo Rodriguez T gravatar image

Specify the zeros dictionary at the root namespace, (I don't know why joint_state_publisher does not use the node's private one, but that's how it is). In yaml syntax, this should be (untested):

zeros:
  foo_joint: 1.0
  bar_joint: -1.0

If it doesn't work, ask the source.

edit flag offensive delete link more

Comments

Thx Adolfo! I'll try and let you know!

Enrico gravatar image Enrico  ( 2014-12-10 04:57:54 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-06 12:43:48 -0600

Seen: 279 times

Last updated: Dec 10 '14