-
Notifications
You must be signed in to change notification settings - Fork 288
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
Parse sdf's joint dynamics completely #1383
Conversation
- Parse joint friction, spring_stiffness, spring_reference Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1383 +/- ##
=========================================
+ Coverage 56.97% 57.27% +0.3%
=========================================
Files 366 366
Lines 27416 27432 +16
=========================================
+ Hits 15619 15711 +92
+ Misses 11797 11721 -76
|
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.
Thank you for the contribution! One style change is suggested in the inline comment.
Would you be able to add a simple unit test for completion something like this to test_SdfParser.cpp
?
dart/utils/sdf/SdfParser.cpp
Outdated
@@ -1258,7 +1258,7 @@ static void readAxisElement( | |||
const Eigen::Isometry3d& _parentModelFrame, | |||
Eigen::Vector3d& axis, | |||
double& lower, double& upper, double& initial, double& rest, | |||
double& damping) | |||
double& damping, double &friction, double &sprint_stiffness) |
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.
double& damping, double &friction, double &sprint_stiffness) | |
double& damping, double& friction, double& sprint_stiffness) |
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.
Applied clang-format
to overall SdfParser.cpp
.
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
An error on parsing spring stiffness and related unit tests are added. |
f7c4659
to
6a03045
Compare
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.
I think we're almost there. Could you resolve the conflicts? I merged #1384 for formatting the utils
code to make the changes or this PR clean (removing the code formatting changes from this PR).
@@ -0,0 +1,278 @@ | |||
<?xml version="1.0" ?> | |||
<sdf version="1.4"> |
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.
<sdf version="1.4"> | |
<sdf version="1.5"> |
Looking at the specification, the new joint dynamics properties were introduced in version 1.5.
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.
@jslee02 Resolved the conflicts and modified the sdf file version to 1.5
Signed-off-by: vinnamkim <vinnam.kim@gmail.com>
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.
Looks good to me! Let's merge this once Travis CI becomes happy.
Signed-off-by: vinnamkim vinnam.kim@gmail.com
Resolve #1382
Before creating a pull request
clang-format
Before merging a pull request
CHANGELOG.md