20 #include <yarp/os/all.h> 21 #include <yarp/sig/all.h> 22 #include <yarp/math/Math.h> 23 #include <yarp/math/SVD.h> 35 if (!yarp.checkNetwork())
37 yError()<<
"[KARMAiCubClientExample] YARP network seems unavailable!";
41 ICubClient iCub(
"KARMAiCubClientExample",
"icubClient",
"example_ARE_KARMA.ini");
46 yError()<<
"[KARMAiCubClientExample] KARMA seems unavailabe!";
59 yInfo()<<
"[KARMAiCubClientExample] try to push left with KARMA...";
61 yInfo()<<(ok?
"success":
"failed");
66 yInfo()<<
"[KARMAiCubClientExample] try to push right with KARMA...";
68 yInfo()<<(ok?
"success":
"failed");
74 yInfo()<<
"[KARMAiCubClientExample] try to push front with KARMA...";
76 yInfo()<<(ok?
"success":
"failed");
84 yInfo()<<
"[KARMAiCubClientExample] try to pull with KARMA...";
86 yInfo()<<(ok?
"success":
"failed");
89 yInfo()<<
"[KARMAiCubClientExample] shutting down ... ";
Grants access to high level motor commands (grasp, touch, look, goto, etc) of the robot as well as it...
bool connectSubSystems()
Try to connect to all sub-systems.
bool home(const std::string &part="all")
Go in home position.
bool pushKarma(const yarp::sig::VectorOf< double > &targetCenter, const double &theta, const double &radius, const yarp::os::Bottle &options=yarp::os::Bottle())
pushKarma (KARMA): push to certain position, along a direction See the SubSystem_KARMA::push document...
void close()
Properly closes all ports which were opened.
bool drawKarma(const yarp::sig::VectorOf< double > &targetCenter, const double &theta, const double &radius, const double &dist, const yarp::os::Bottle &options=yarp::os::Bottle())
drawKarma (KARMA): draw action, along the positive direction of the x-axis (in robot FoR) See the Sub...