21 #include <yarp/sig/all.h> 22 #include <yarp/os/all.h> 23 #include <yarp/dev/all.h> 70 bool respond(
const yarp::os::Bottle&
command, yarp::os::Bottle& reply);
110 #endif // _BABBLING_H_ yarp::dev::IVelocityControl * velRightArm
yarp::dev::IEncoders * encsLeftArm
yarp::dev::IControlMode * ictrlRightArm
bool init_left_arm()
Create PolyDriver for left arm.
std::string part
Should be "left_arm" or "right_arm".
std::string robot
Should be "icub" or "icubSim".
yarp::sig::VectorOf< double > start_command_head
Target for head in start position.
yarp::dev::PolyDriver headDev
yarp::sig::VectorOf< double > encodersRightArm
yarp::os::RpcServer handlerPort
double start_command_arm[16]
Start command for the 16 arm joints.
bool init_iCub()
Initializes all the device controllers.
yarp::dev::IControlLimits * ictrlLimRightArm
bool gotoStartPos()
Move head + arm in start position.
bool init_right_arm()
Create PolyDriver for left arm.
yarp::dev::IEncoders * encsRightArm
yarp::sig::VectorOf< double > encodersLeftArm
yarp::dev::IPositionControl * posRightArm
std::string part_babbling
Whether to do babbling with the whole "arm" or "hand" (should be either one or the other) ...
int single_joint
Which joint to do babbling with in case it is a single joint.
double duration
Duration for the babbling.
double amp
Amplitude for sin wave.
yarp::dev::IPositionControl * posLeftArm
double freq
Frequency for sin wave.
yarp::dev::ITorqueControl * itrqRightArm
yarp::dev::ITorqueControl * itrqLeftArm
yarp::dev::IGazeControl * igaze
yarp::dev::IVelocityControl * velLeftArm
bool moveHeadToStartPos()
Use iGazeController to move head in start position.
yarp::dev::IControlMode * ictrlLeftArm
bool doBabbling()
Sets the joints to be in velocity control, then goes in a loop to call babblingCommands for duration ...
yarp::dev::IControlLimits * ictrlLimLeftArm
bool configure(yarp::os::ResourceFinder &rf)
yarp::dev::PolyDriver leftArmDev
void babblingCommands(double &t, int j_idx)
Issues the actual velocity commands for time t.
yarp::dev::PolyDriver rightArmDev
bool respond(const yarp::os::Bottle &command, yarp::os::Bottle &reply)