Skip to content
Snippets Groups Projects
Commit 80509a84 authored by Fabian Reister's avatar Fabian Reister
Browse files

core: trajectory method: duration

parent a2612643
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
#include <VirtualRobot/math/Helpers.h>
#include <VirtualRobot/math/LinearInterpolatedPose.h>
#include "ArmarXCore/core/exceptions/LocalException.h"
#include "ArmarXCore/core/exceptions/local/ExpressionException.h"
#include <ArmarXCore/core/logging/Logging.h>
......@@ -566,4 +567,13 @@ namespace armarx::navigation::core
{
return pts;
}
float
Trajectory::duration(const core::VelocityInterpolation interpolation) const
{
throw LocalException("not implemented yet");
return 0; // FIXME
}
} // namespace armarx::navigation::core
......@@ -32,7 +32,7 @@ namespace armarx::navigation::core
struct TrajectoryPoint
{
Waypoint waypoint;
float velocity;
float velocity; // [mm/s]
};
using TrajectoryPoints = std::vector<TrajectoryPoint>;
......@@ -97,6 +97,8 @@ namespace armarx::navigation::core
const std::vector<TrajectoryPoint>& points() const;
float duration(core::VelocityInterpolation interpolation) const;
private:
std::vector<TrajectoryPoint> pts;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment