-
Notifications
You must be signed in to change notification settings - Fork 7
Load HERB model from parameter server in non-sim #104
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
Conversation
I would prefer to not try to infer which hands are installed from properties of the Also, could you merge |
' set. Unable to load correct HERB model.') | ||
urdf_json_wrapper = json.dumps( | ||
{'urdf': urdf_string.replace('\n', ' ').replace('\r', ' '), | ||
'srdf': srdf_string.replace('\n', ' ').replace('\r', ' ')}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JSON requires escaped control characters,and rosparam returns with raw newlines (apparently) so I was getting parse errors. I could do the string replacement with the escaped newlines and returns, but spaces or nothing are fine for XML.
@mkoval I could go either way on this, but one advantage of the derive-from-URDF approach is that it also works in simulation mode ... I'd imagine that it will be useful to have different HERB models lying around (with different hand types) that we'd want to use with (I'm not sure the best way to accomplish this though -- URDF does support custom XML elements, so maybe we could define a |
I agree that it's important to be able to load different HERB configurations in simulation. However, I still don't think the correct way of doing so is to infer the configuration from the OpenRAVE model. We can add the same arguments (e.g. This means that
|
Sounds good to me! |
I'm going to try to incorporate the BH282 (whatever is necessary) and see what the |
This is blocked on the refactoring HERB's TSRs. |
To support multiple arm/hand configurations, load the HERB urdf/srdf from
/robot_description
and/semantic_robot_description
. Additionally, need to test the end effectors to determine if they are BarrettHands or dummy EEs.Depends on personalrobotics/or_urdf#26 and personalrobotics/prpy#346