YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IAxisInfoTest.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef IAXISINFOTEST_H
7#define IAXISINFOTEST_H
8
10#include <catch2/catch_amalgamated.hpp>
11
12using namespace yarp::dev;
13using namespace yarp::os;
14
16{
17 inline void exec_iAxisInfo_test_1(IAxisInfo* iinfo, std::string jname="joint0")
18 {
19 REQUIRE(iinfo !=nullptr);
20
21 bool b;
22
23 size_t ax=0;
24 b = iinfo->getAxes(ax);
25 CHECK(b);
26 CHECK(ax > 0);
27
28 std::string name;
29 b = iinfo->getAxisName(0,name);
30 CHECK(b);
31 CHECK(name == jname);
32
34 b = iinfo->getJointType(0, type);
35 CHECK(b);
37 }
38}
39
40#endif
define control board standard interfaces
Interface for getting information about specific axes, if available.
Definition IAxisInfo.h:37
A mini-server for performing network communication in the background.
void exec_iAxisInfo_test_1(IAxisInfo *iinfo, std::string jname="joint0")
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.
Definition OSTestMsg.cpp:13