6#ifndef IVELOCITYCONTROLTEST_H
7#define IVELOCITYCONTROLTEST_H
15#include <catch2/catch_amalgamated.hpp>
35 for (
size_t i = 0; i<
ax; i++)
51 b =
ivel->getTrajAcceleration(0, &ref);
58 b =
ivel->getTargetVelocity(0,&ref);
78 auto refs = std::vector<double>(
ax);
80 for (
size_t i = 0; i <
ax; i++)
86 b =
ivel->setTrajAcceleration(0, ref);
88 b =
ivel->getTrajAcceleration(0, &ref);
90 b =
ivel->setTrajAccelerations( refs.data());
92 b =
ivel->getTrajAccelerations( refs.data());
95 b =
ivel->velocityMove(0, ref);
98 b =
ivel->getTargetVelocity(0, &ref);
100 b =
ivel->getTargetVelocities(refs.data());
Interface for setting control mode in control board.
virtual yarp::dev::ReturnValue getControlMode(int j, yarp::dev::ControlModeEnum &mode)=0
Get the current control mode.
virtual yarp::dev::ReturnValue setControlMode(int j, yarp::dev::SelectableControlModeEnum mode)=0
Set the current control mode.
Interface for control boards implementing velocity control.
A mini-server for performing network communication in the background.
void exec_iVelocityControl_test_unimplemented_interface(IVelocityControl *ivel, IControlMode *icmd)
void wait_safe(const double seconds)
void exec_iVelocityControl_test_1(IVelocityControl *ivel, IControlMode *icmd)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.