Skip to content

Commit

Permalink
very slow, only one limb (last loaded controller), but performs traje…
Browse files Browse the repository at this point in the history
…ctory with intermediate positions
  • Loading branch information
jgvictores committed Nov 9, 2017
1 parent e154932 commit a522394
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "YarpOpenraveControlboard.hpp"

#include <openrave/planningutils.h>

// ------------------- IPositionControl Related --------------------------------

bool roboticslab::YarpOpenraveControlboard::getAxes(int *ax) {
Expand Down Expand Up @@ -41,7 +43,12 @@ bool roboticslab::YarpOpenraveControlboard::positionMove(int j, double ref) { /

OpenRAVE::TrajectoryBasePtr ptraj = OpenRAVE::RaveCreateTrajectory(penv,"");
ptraj->Init(activeConfigurationSpecification);

std::vector<OpenRAVE::dReal> manipulatorNow;
probot->GetActiveDOFValues(manipulatorNow); // get current values
ptraj->Insert(0,manipulatorNow);
ptraj->Insert(1,manipulatorTargets);
OpenRAVE::planningutils::SmoothActiveDOFTrajectory(ptraj,probot);
pcontrol->SetPath(ptraj);
/*
int timeoffset = spec.AddDeltaTimeGroup();
std::vector<OpenRAVE::dReal> q;
Expand Down

0 comments on commit a522394

Please sign in to comment.