6#ifndef IVELOCITYDIRECTTEST_H
7#define IVELOCITYDIRECTTEST_H
16#include <catch2/catch_amalgamated.hpp>
36 for (
size_t i = 0; i <
ax; i++)
51 auto refs = std::vector<double>(
ax);
53 auto joints = std::vector<int>(
ax);
54 std::iota(joints.begin(), joints.end(), 0);
56 b =
ivdir->setRefVelocity(0, ref);
60 b =
ivdir->getRefVelocity(0, ref);
64 std::iota(refs.begin(), refs.end(), 1.0);
67 b =
ivdir->setRefVelocity(refs);
71 b =
ivdir->getRefVelocity(refs);
75 std::iota(refs.begin(), refs.end(), 10.0);
78 b =
ivdir->setRefVelocity(joints, refs);
82 b =
ivdir->getRefVelocity(joints, refs);
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 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 wait_safe(const double seconds)
void exec_iVelocityDirect_test_1(IVelocityDirect *ivdir, IControlMode *icmd)
For streams capable of holding different kinds of content, check what they actually have.
@ VOCAB_CM_VELOCITY_DIRECT
@ VOCAB_CM_VELOCITY_DIRECT
An interface to the operating system, including Port based communication.