Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The jsp can now use the zeros parameter when joint names have slashes. #60

Merged
merged 3 commits into from
Feb 17, 2022

Conversation

m-elwin
Copy link
Contributor

@m-elwin m-elwin commented Dec 25, 2020

fixes #59

zeros should be a dictionary of joint-name joint-value pairs. However,
the ROS parameter server expands dictionary keys into namespaces.

For example, rosparam set zeros "{joint_1 : 1.0, robot1/joint_2 : 2.0}" results
in the creation of two parameters: zeros/joint_1, zeros/robot1/joint_2.

This change causes the zeros value for a joint called "robot1/joint_2" to be read
from "zeros/robot1/joint_2".

m-elwin and others added 2 commits December 25, 2020 12:23
…names have slashes.

zeros should be a dictionary of joint-name joint-value pairs.  However,
the ROS parameter server expands dictionary keys into namespaces.

For example, rosparam set zeros "{joint_1 : 1.0, robot1/joint_2 : 2.0}" results
in the creation of two parameters: zeros/joint_1, zeros/robot1/joint_2.

This change causes the zeros value for a joint called "robot1/joint_2" to be read
from "zeros/robot1/joint_2".
@DLu
Copy link
Contributor

DLu commented Jan 6, 2021

I added commits here to round out this PR: m-elwin#1

@DLu
Copy link
Contributor

DLu commented Jan 8, 2021

@clalancette You want to check this out?

@mintar
Copy link
Contributor

mintar commented May 31, 2021

+1 for this PR.

In the long run, it would be nice to fix this in the parameter server instead. IMO, that's where the real bug is, because the parameter server should allow escaping "/" characters. Instead, it ignores any ", ' and \ chars that you put into your YAML to mark a string.

@DLu
Copy link
Contributor

DLu commented Jun 3, 2021

Accio @clalancette !

@clalancette clalancette merged commit 8feb6ea into ros:noetic-devel Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zeros parameter when joint names have slashes
4 participants