19 #ifndef __ICUBCLIENT_SUBSYSTEM_ARE_H__ 20 #define __ICUBCLIENT_SUBSYSTEM_ARE_H__ 24 #include <yarp/os/all.h> 25 #include <yarp/sig/all.h> 30 #define SUBSYSTEM_ARE "ARE" 65 bool sendCmd(
const yarp::os::Bottle &cmd);
90 const std::string& objName,
const std::string handToUse=
"");
107 bool home(
const std::string &part =
"all");
120 bool take(
const std::string &sName,
const yarp::os::Bottle &options = yarp::os::Bottle());
133 bool push(
const std::string &sName,
const yarp::os::Bottle &options = yarp::os::Bottle());
146 bool point(
const yarp::sig::VectorOf<double> &targetUnsafe,
const yarp::os::Bottle &options = yarp::os::Bottle());
156 bool drop(
const yarp::os::Bottle &options = yarp::os::Bottle());
166 bool dropOn(
const yarp::sig::VectorOf<double> &targetUnsafe,
const yarp::os::Bottle &options = yarp::os::Bottle());
176 bool observe(
const yarp::os::Bottle &options = yarp::os::Bottle());
186 bool expect(
const yarp::os::Bottle &options = yarp::os::Bottle());
197 bool give(
const yarp::os::Bottle &options = yarp::os::Bottle());
204 bool waving(
const bool sw);
214 bool look(
const yarp::sig::VectorOf<double> &target,
const yarp::os::Bottle &options = yarp::os::Bottle());
223 bool track(
const yarp::sig::VectorOf<double> &target,
const yarp::os::Bottle &options = yarp::os::Bottle());
bool sendCmd(const yarp::os::Bottle &cmd)
Sends a command to ARE's cmdPort.
yarp::os::RpcClient portRPC
Port to /ARE/rpc.
std::string lastlyUsedHand
The hand which was used for the last action.
SubSystem to deal with the actionsRenderingEngine module (a.k.a.
yarp::os::RpcClient portCalib
Port to iolReachingCalibration.
bool push(const std::string &sName, const yarp::os::Bottle &options=yarp::os::Bottle())
Reach the specified [target] from one side and then push it laterally.
bool look(const yarp::sig::VectorOf< double > &target, const yarp::os::Bottle &options=yarp::os::Bottle())
Look at the specified [target].
~SubSystem_ARE()
Destructor.
SubSystem_ARE(const std::string &masterName)
Default constructor.
bool expect(const yarp::os::Bottle &options=yarp::os::Bottle())
Put one hand forward with the palm facing up and wait for an object.
bool impedance(const bool sw)
Enable/disable impedance control.
bool point(const yarp::sig::VectorOf< double > &targetUnsafe, const yarp::os::Bottle &options=yarp::os::Bottle())
Point at the specified [target] with the index finger.
yarp::os::RpcClient portGet
Port to /ARE/get:io.
bool home(const std::string &part="all")
Put the specified part ih home position.
bool getTableHeight(double &height)
Gets the table height from ARE.
yarp::os::RpcClient portCmd
Port to /ARE/cmd:io.
Abstract class to handle sub-systems of the icub-client.
void Close()
Clean up resources.
bool track(const yarp::sig::VectorOf< double > &target, const yarp::os::Bottle &options=yarp::os::Bottle())
Track the specified [target].
An OPC client using the datastructures defined within the icub-client library.
bool observe(const yarp::os::Bottle &options=yarp::os::Bottle())
Bring the hand in the visual field and move it with the purpose of visual exploration.
bool take(const std::string &sName, const yarp::os::Bottle &options=yarp::os::Bottle())
Reach the specified [target] and grasp it.
yarp::sig::VectorOf< double > applySafetyMargins(const yarp::sig::VectorOf< double > &in)
Applies safety margins, i.e.
void appendCartesianTarget(yarp::os::Bottle &b, const yarp::sig::VectorOf< double > &t)
Appends a target vector t to the Bottle b
void selectHandCorrectTarget(yarp::os::Bottle &options, yarp::sig::VectorOf< double > &target, const std::string &objName, const std::string handToUse="")
bool dropOn(const yarp::sig::VectorOf< double > &targetUnsafe, const yarp::os::Bottle &options=yarp::os::Bottle())
Drop the object on a given target.
bool drop(const yarp::os::Bottle &options=yarp::os::Bottle())
If an object is held, bring it over the table and drop it on a random position.
bool give(const yarp::os::Bottle &options=yarp::os::Bottle())
Put one hand forward with the palm facing up and open the fingers so that the object held in the hand...
bool waving(const bool sw)
Enable/disable arms waving.
bool setExecTime(const double execTime)
Change default arm movement execution time.