-
Notifications
You must be signed in to change notification settings - Fork 284
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
[JTC] Allow integration of states in goal trajectories #190
[JTC] Allow integration of states in goal trajectories #190
Conversation
I have here issue where uncrustify and cpplint are fighting... |
joint_trajectory_controller/include/joint_trajectory_controller/trajectory.hpp
Outdated
Show resolved
Hide resolved
c260f0c
to
bf8f81a
Compare
bf8f81a
to
83de425
Compare
83de425
to
52f1617
Compare
can you please rebase this? |
EXPECT_NEAR(point_before_msg.positions[0], expected_state.positions[0], EPS); | ||
EXPECT_NEAR(point_before_msg.velocities[0], expected_state.velocities[0], EPS); | ||
// is 0 because point_before_msg does not have velocity defined | ||
EXPECT_NEAR(1.0, expected_state.accelerations[0], EPS); |
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.
Could you document in a comment why you expect 1.0 for the sake of future test extensions?
joint_trajectory_controller/src/joint_trajectory_controller.cpp
Outdated
Show resolved
Hide resolved
joint_trajectory_controller/src/joint_trajectory_controller.cpp
Outdated
Show resolved
Hide resolved
joint_trajectory_controller/src/joint_trajectory_controller.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Lopez <3469405+v-lopez@users.noreply.github.com>
2de56e6
to
86e3a9f
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 have added all the changes and commented to the rest.
The relevant tests are passing:
- "test_trajectory" - set of tests
- "missing_positions_message_accepted" test in "test_trajectory_controller" set (newly added test)
) * Add allow_integration flag * Added position and velocity deduction to trajectory. * Added support for deduction of states from their derivatives. * Apply suggestions from code review Co-authored-by: Victor Lopez <3469405+v-lopez@users.noreply.github.com> * Correct warnings and formating. * Update test to use more human-readable values. * Apply reviewers comments. * Last test fixes. Co-authored-by: Denis Štogl <destogl@users.noreply.github.com> Co-authored-by: Victor Lopez <3469405+v-lopez@users.noreply.github.com>
Second part of #161,
Enabling integration of states in goal trajectories. This means that goal trajectories may have only velocity of acceleration defined. Then posiitions and/or velocities will be integrated from inputs.