Skip to content
Snippets Groups Projects
Commit 335efae2 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

Merge branch 'master' of https://gitlab.com/ArmarX/RobotAPI

parents 01fd33f8 1adcfb24
No related branches found
No related tags found
No related merge requests found
......@@ -92,12 +92,18 @@ namespace armarx
return _out;
}
void CartesianWaypointController::setNewWaypoints(const std::vector<Eigen::Matrix4f>& waypoints)
void CartesianWaypointController::setWaypoints(const std::vector<Eigen::Matrix4f>& waypoints)
{
this->waypoints = waypoints;
currentWaypointIndex = 0;
}
void CartesianWaypointController::swapWaypoints(std::vector<Eigen::Matrix4f>& waypoints)
{
std::swap(this->waypoints, waypoints);
currentWaypointIndex = 0;
}
void CartesianWaypointController::addWaypoint(const Eigen::Matrix4f& waypoint)
{
this->waypoints.push_back(waypoint);
......
......@@ -65,7 +65,8 @@ namespace armarx
const Eigen::VectorXf& calculate(float dt);
void setNewWaypoints(const std::vector<Eigen::Matrix4f>& waypoints);
void setWaypoints(const std::vector<Eigen::Matrix4f>& waypoints);
void swapWaypoints(std::vector<Eigen::Matrix4f>& waypoints);
void addWaypoint(const Eigen::Matrix4f& waypoint);
void setTarget(const Eigen::Matrix4f& target);
void setFeedForwardVelocity(const Eigen::Vector6f& feedForwardVelocity);
......
......@@ -86,6 +86,7 @@ namespace armarx
static Result CalculateDiffIK(const Eigen::Matrix4f targetPose, VirtualRobot::RobotNodeSetPtr rns, VirtualRobot::RobotNodePtr tcp = VirtualRobot::RobotNodePtr(), Parameters params = Parameters());
///@brief Use this to check a trajectory of waypoints
static Reachability CalculateReachability(const std::vector<Eigen::Matrix4f> targets, const Eigen::VectorXf& initialJV, VirtualRobot::RobotNodeSetPtr rns, VirtualRobot::RobotNodePtr tcp = VirtualRobot::RobotNodePtr(), Parameters params = Parameters());
};
......
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