Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions blast/blast_task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#include <blast>

namespace blast {


struct TaskBoundary {
Array position;
Array velocity;
Expand All @@ -25,6 +23,16 @@ struct Task {
}
}

explicit Task(const Matrix& m) {
start.position = m.col(0);
start.velocity = m.col(1);
start.acceleration = m.col(2);

goal.position = m.col(3);
goal.velocity = m.col(4);
goal.acceleration = m.col(5);
}

static Task stop_to_stop(Array start_pos, Array goal_pos) {
Task t(start_pos.size);
t.start.position = std::move(start_pos);
Expand All @@ -47,5 +55,4 @@ struct Task {
}
};


} // namespace blast
Loading