Zultron/tracksuite refactor pt1#62
Zultron/tracksuite refactor pt1#62AndyZe merged 4 commits intoPickNikRobotics:andyz/squashed_improvementsfrom
Conversation
601f825 to
1e9323c
Compare
1e9323c to
f7d521a
Compare
|
Converting to draft until I find out why I'm getting a segfault running in MoveIt. ;( |
|
PickNikRobotics/moveit#10 fixes the segfault. Since the constructor no longer initializes the object, the I will update this branch to not segfault when calling |
f7d521a to
04148bf
Compare
04148bf to
e4cf070
Compare
|
It needs a rebase now that #63 was merged |
test/trajectory_generation_test.cpp
Outdated
There was a problem hiding this comment.
We almost always use ++joint instead of joint++. Apparently it's usually faster (but that's debatable). See
There was a problem hiding this comment.
Fixed. Good to know, thanks!
There was a problem hiding this comment.
src/single_joint_generator.cpp
Outdated
There was a problem hiding this comment.
index_last_successful shouldn't have an underscore since it's an argument, not a member variable
There was a problem hiding this comment.
Whoops! I got confused.
Just to be clear, this was unintentional too, right? I'll fix these all at once.
7c937ad#diff-dc20813d2542db5e34c181dc39240a4fR522
|
It looks like the three examples are throwing this error now. e.g. |
c5beeb1 to
8094097
Compare
Done. |
I'll take care of this. Thanks1 |
SingleJointGenerator::reset does these same computations, refactor code to use this instead
Configuration variables are moved to a struct, written to by `reset()` and used by other methods.
Record traveled trajectory for inspection by `checkBounds()` in `TearDown()` function
To simulate velocity-, acceleration- and jerk-limited motion, the next state's velocity and acceleration must be updated along with position.
8094097 to
883c5b1
Compare
Ouch, these were a failure on top of a failure, extra embarrassing. Fixed. #64 adds the example programs to a test to prevent future regressions. |
|
OK, I believe I've addressed all comments, and CI is green! Thanks for the detailed review. |
AndyZe
left a comment
There was a problem hiding this comment.
LGTM, I'll wait for Nathan to review this one, if he pleases.
* Member variable refactor: Remove calculations from constructor SingleJointGenerator::reset does these same computations, refactor code to use this instead * SingleJointGenerator: Move configuration variables to struct Configuration variables are moved to a struct, written to by `reset()` and used by other methods. * NoisyStreamingCommand test: Record traveled trajectory Record traveled trajectory for inspection by `checkBounds()` in `TearDown()` function * NoisyStreamingCommand test: Add velocity/acceleration to next state To simulate velocity-, acceleration- and jerk-limited motion, the next state's velocity and acceleration must be updated along with position.
This PR implements some of the changes described in the TrackSuite Unification Development document:
It also contains several small cleanups to correct compiler warnings, adjust variable types and remove unneeded files.