25 #include <RobotAPI/interface/units/RobotUnit/NJointTrajectoryController.h>
33 using namespace TrajectoryExecutionCode;
44 NJointTrajectoryControllerConfigPtr cfg(
new NJointTrajectoryControllerConfig());
45 cfg->jointNames.push_back(
"Hip Yaw");
46 cfg->maxAcceleration = 0.05;
47 cfg->maxVelocity = 0.3;
48 NJointTrajectoryControllerInterfacePrx prx = NJointTrajectoryControllerInterfacePrx::checkedCast(
getRobotUnit()->getNJointController(
"ActorNJointTrajectoryController"));
51 prx = NJointTrajectoryControllerInterfacePrx::checkedCast(
getRobotUnit()->createNJointController(
"NJointTrajectoryController",
"ActorNJointTrajectoryController", cfg));
57 prx->deactivateController();
62 Ice::DoubleSeq sr = {0, 1, 1.6, 1, 0};
63 t->addDimension(sr, {},
"Hip Yaw");
64 prx->setTrajectory(t);