21 #ifndef _DEMOREDBALL_H_
22 #define _DEMOREDBALL_H_
25 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/os/Bottle.h>
27 #include <yarp/os/Property.h>
28 #include <yarp/os/RpcClient.h>
29 #include <yarp/os/BufferedPort.h>
30 #include <yarp/dev/PolyDriver.h>
31 #include <yarp/dev/IEncoders.h>
32 #include <yarp/dev/CartesianControl.h>
33 #include <yarp/sig/Vector.h>
59 yarp::sig::Vector home_arm;
62 yarp::dev::PolyDriver drvJointArmL;
63 yarp::dev::PolyDriver drvJointArmR;
64 yarp::dev::PolyDriver drvJointTorso;
65 yarp::dev::PolyDriver drvJointHead;
66 yarp::dev::PolyDriver drvCartArmL;
67 yarp::dev::PolyDriver drvCartArmR;
68 yarp::dev::PolyDriver drvGaze;
71 yarp::dev::ICartesianControl *iarm;
72 yarp::dev::IEncoders *ienc;
75 yarp::os::RpcClient rpcPort;
76 yarp::os::BufferedPort<yarp::os::Bottle> guiPort;
77 void testBallPosition(
const yarp::sig::Vector &pos);
78 bool getBallPosition(
const yarp::os::Bottle* b, yarp::sig::Vector& pos);
83 virtual bool setup(yarp::os::Property& property);
84 virtual void tearDown();
This test verifies the point-to-point cartesian movement.