6#ifndef IVELOCITYDIRECTTEST_H
7#define IVELOCITYDIRECTTEST_H
16#include <catch2/catch_amalgamated.hpp>
24 inline bool vectors_equal(
const std::vector<double>& a,
const std::vector<double>& b)
26 return a.size() == b.size() && std::equal(a.begin(), a.end(), b.begin());
41 for (
size_t i = 0; i <
ax; i++)
56 auto refs = std::vector<double>(
ax);
61 b =
ivdir->setDesiredVelocity(0, ref);
65 b =
ivdir->getDesiredVelocity(0, ref);
69 std::iota(
refs.begin(),
refs.end(), 1.0);
80 std::iota(
refs.begin(),
refs.end(), 10.0);
constexpr yarp::conf::vocab32_t VOCAB_CM_VELOCITY_DIRECT
Interface for setting control mode in control board.
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
virtual bool getControlMode(int j, int *mode)=0
Get the current control mode.
Interface for control boards implementing direct velocity control.
A mini-server for performing network communication in the background.
bool vectors_equal(const std::vector< double > &a, const std::vector< double > &b)
void exec_iVelocityDirect_test_1(IVelocityDirect *ivdir, 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.