-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split parameter files, calculate in trajectory
- Loading branch information
Lars Berscheid
committed
Mar 9, 2021
1 parent
9a8bcd7
commit 83d00d8
Showing
12 changed files
with
311 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#include <iostream> | ||
|
||
#include <ruckig/parameter.hpp> | ||
#include <ruckig/ruckig.hpp> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <array> | ||
|
||
#include <ruckig/trajectory.hpp> | ||
|
||
|
||
namespace ruckig { | ||
|
||
//! Output type of the OTG | ||
template<size_t DOFs> | ||
struct OutputParameter { | ||
static constexpr size_t degrees_of_freedom {DOFs}; | ||
|
||
std::array<double, DOFs> new_position, new_velocity, new_acceleration; | ||
|
||
bool new_calculation {false}; | ||
double calculation_duration; // [µs] | ||
|
||
// Current trajectory | ||
Trajectory<DOFs> trajectory; | ||
|
||
// Current time on trajectory | ||
double time; | ||
}; | ||
|
||
} // namespace ruckig |
Oops, something went wrong.