6#ifndef IVELOCITYCONTROLTEST_H
7#define IVELOCITYCONTROLTEST_H
15#include <catch2/catch_amalgamated.hpp>
34 for (
size_t i = 0; i<
ax; i++)
44 b =
ivel->getRefAcceleration(0, &ref);
51 b =
ivel->getRefVelocity(0,&ref);
71 auto refs = std::vector<double>(
ax);
73 for (
size_t i = 0; i <
ax; i++)
79 b =
ivel->setRefAcceleration(0, ref);
81 b =
ivel->getRefAcceleration(0, &ref);
83 b =
ivel->setRefAccelerations(
refs.data());
85 b =
ivel->getRefAccelerations(
refs.data());
88 b =
ivel->velocityMove(0, ref);
91 b =
ivel->getRefVelocity(0, &ref);
93 b =
ivel->getRefVelocities(
refs.data());
constexpr yarp::conf::vocab32_t VOCAB_CM_VELOCITY
Interface for setting control mode in control board.
virtual bool setControlMode(const int j, const int 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 exec_iVelocityControl_test_1(IVelocityControl *ivel, IControlMode *icmd)
For streams capable of holding different kinds of content, check what they actually have.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.