-
Notifications
You must be signed in to change notification settings - Fork 100
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
Spec 1.12: link_state, joint_state changes #1461
Changes from 17 commits
b979877
f5d2571
f84706e
e577e15
a6fccc3
53a5378
9af6119
13229e0
a0e86e6
f0e5536
d7a887f
4e07a21
a266d6b
56e59f8
de15ea6
17c8efd
3ecd891
3fa2308
8521907
107146b
1b77045
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -628,6 +628,33 @@ ABI was broken for `sdf::Element`, and restored on version 11.2.1. | |
|
||
## SDFormat specification 1.11 to 1.12 | ||
|
||
### Additions | ||
|
||
1. **joint_state.sdf**: | ||
+ `//joint_state/axis_state/position` | ||
+ `//joint_state/axis_state/velocity` | ||
+ `//joint_state/axis_state/acceleration` | ||
+ `//joint_state/axis_state/effort` | ||
+ `//joint_state/axis2_state/position` | ||
+ `//joint_state/axis2_state/velocity` | ||
+ `//joint_state/axis2_state/acceleration` | ||
+ `//joint_state/axis2_state/effort` | ||
|
||
1. **link_state.sdf**: | ||
+ `//link_state/linear_velocity` | ||
+ `//link_state/angular_velocity` | ||
+ `//link_state/linear_acceleration` | ||
+ `//link_state/angular_acceleration` | ||
+ `//link_state/linear_wrench` | ||
+ `//link_state/angular_wrench` | ||
|
||
1. **model.sdf**: | ||
+ `//model/model_state` | ||
+ `//model/include/model_state` | ||
|
||
1. **world.sdf**: | ||
+ `//world/include/model_state` | ||
|
||
### Modifications | ||
|
||
1. **state.sdf**, **model_state.sdf**, **joint_state.sdf**, **link_state.sdf**, | ||
|
@@ -645,6 +672,20 @@ ABI was broken for `sdf::Element`, and restored on version 11.2.1. | |
`//world/joint` and `//state/insertions/joint` can represent inserted | ||
`//world/joint` elements. | ||
|
||
### Deprecations | ||
|
||
1. **joint_state.sdf**: | ||
+ `//joint_state/angle` is deprecated in favor of `//axis_state/position` | ||
and `//axis2_state/position`. | ||
|
||
1. **link_state.sdf**: | ||
+ `//link_state/velocity` is deprecated in favor of `//link_state/angular_velocity` | ||
and `//link_state/linear_velocity`. | ||
+ `//link_state/acceleration` is deprecated in favor of `//link_state/angular_acceleration` | ||
and `//link_state/linear_acceleration`. | ||
+ `//link_state/wrench` is deprecated in favor of `//link_state/angular_wrench` | ||
and `//link_state/linear_wrench`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've commonly seen the term wrench refer to the 6D vector that represents torques and forces. If we split them into two 3D vectors, would it make sense to call them torque and force instead of angular_wrench and linear_wrench? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, that's a good point; I was trying to keep symmetry with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I updated the pull request description with |
||
|
||
## SDFormat specification 1.10 to 1.11 | ||
|
||
### Additions | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,101 @@ | |
<description>Name of the joint</description> | ||
</attribute> | ||
|
||
<element name="angle" type="double" default="0" required="+"> | ||
<element name="angle" type="double" default="0" required="-1"> | ||
<attribute name="axis" type="unsigned int" default="0" required="1"> | ||
<description>Index of the axis.</description> | ||
</attribute> | ||
|
||
<description>Angle of an axis</description> | ||
</element> | ||
|
||
<element name="axis_state" required="0"> | ||
<description> | ||
Contains the state of the first joint axis. | ||
</description> | ||
|
||
<element name="position" type="double" default="0" required="0"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't position be a vector? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this |
||
<description>The position of the first joint axis.</description> | ||
|
||
<attribute name="degrees" type="bool" default="false" required="0"> | ||
<description> | ||
If true, the joint position is expressed in units of degrees [deg], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you specify that this would not apply to prismatic joints and the unit will be meters regardless of this attribute? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
otherwise it is expressed in radians [rad]. | ||
</description> | ||
</attribute> | ||
</element> | ||
|
||
<element name="velocity" type="double" default="0" required="0"> | ||
<description>The velocity of the first joint axis.</description> | ||
|
||
<attribute name="degrees" type="bool" default="false" required="0"> | ||
<description> | ||
If true, the joint velocity is expressed in units of degrees per | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the position, can you add a qualifier for prismatic joints? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
second [deg/s], otherwise it is expressed in radians per second | ||
[rad/s]. | ||
</description> | ||
</attribute> | ||
</element> | ||
|
||
<element name="acceleration" type="double" default="0" required="0"> | ||
<description>The acceleration of the first joint axis.</description> | ||
|
||
<attribute name="degrees" type="bool" default="false" required="0"> | ||
<description> | ||
If true, the joint acceleration is expressed in units of degrees per | ||
second per second [deg/s^2], otherwise it is expressed in radians per | ||
second per second [rad/s^2]. | ||
</description> | ||
</attribute> | ||
</element> | ||
|
||
<element name="effort" type="double" default="0" required="0"> | ||
<description>The effort applied at the first joint axis.</description> | ||
</element> | ||
</element> | ||
|
||
<element name="axis2_state" required="0"> | ||
<description> | ||
Contains the state of the second joint axis. | ||
</description> | ||
|
||
<element name="position" type="double" default="0" required="0"> | ||
<description>The position of the second joint axis.</description> | ||
|
||
<attribute name="degrees" type="bool" default="false" required="0"> | ||
<description> | ||
If true, the joint position is expressed in units of degrees [deg], | ||
otherwise it is expressed in radians [rad]. | ||
</description> | ||
</attribute> | ||
</element> | ||
|
||
<element name="velocity" type="double" default="0" required="0"> | ||
<description>The velocity of the second joint axis.</description> | ||
|
||
<attribute name="degrees" type="bool" default="false" required="0"> | ||
<description> | ||
If true, the joint velocity is expressed in units of degrees per | ||
second [deg/s], otherwise it is expressed in radians per second | ||
[rad/s]. | ||
</description> | ||
</attribute> | ||
</element> | ||
|
||
<element name="acceleration" type="double" default="0" required="0"> | ||
<description>The acceleration of the second joint axis.</description> | ||
|
||
<attribute name="degrees" type="bool" default="false" required="0"> | ||
<description> | ||
If true, the joint acceleration is expressed in units of degrees per | ||
second per second [deg/s^2], otherwise it is expressed in radians per | ||
second per second [rad/s^2]. | ||
</description> | ||
</attribute> | ||
</element> | ||
|
||
<element name="effort" type="double" default="0" required="0"> | ||
<description>The effort applied at the second joint axis.</description> | ||
</element> | ||
</element> | ||
</element> <!-- End Joint --> |
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.
Just to make it clear that it's still within
joint_state
.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.
ok, will fix
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.
3fa2308