src/experiments/eurobot/sendCmd/functionList.cpp
bool sendArmJointCommand(const YBVocab &vocab, YARPBabyBottle &bottle)
{
	bottle.writeVocab(vocab);
	cout << "Arm command requires now " << __armJoints << " joint position (grad)\n";
	YVector cmd;
	cmd.Resize(__armJoints);
	for (int i = 0; i < __armJoints; i++)
	{
		cin >> cmd(i+1);
		cmd(i+1) = cmd(i+1)*degToRad;
	}

	bottle.writeYVector(cmd);
	return true;
}
// send a vocab command followed by a YVector (arm)
send a vocab command followed by a YVector (arm)
send a vocab command followed by a YVector ( arm )
bool sendArmJointCommand(const YBVocab &vocab, YARPBabyBottle &bottle)
{
	bottle.writeVocab(vocab);
	cout << "Arm command requires now " << __armJoints << " joint position (grad)\n";
	YVector cmd;
	cmd.Resize(__armJoints);
	for (int i = 0; i < __armJoints; i++)
	{
		cin >> cmd(i+1);
		cmd(i+1) = cmd(i+1)*degToRad;
	}
	bottle.writeYVector(cmd);
	return true;
}
bool sendArmJointCommand ( const YBVocab & vocab , YARPBabyBottle & bottle ) { bottle . writeVocab ( vocab ) ; cout << " " << __armJoints << " \n " ; YVector cmd ; cmd . Resize ( __armJoints ) ; for ( int i = 0 ; i < __armJoints ; i ++ ) { cin >> cmd ( i + 1 ) ; cmd ( i + 1 ) = cmd ( i + 1 ) * degToRad ; } bottle . writeYVector ( cmd ) ; return true ; }
send a vocab command followed by a YVector (arm)
send a vocab command followed by a YVector ( arm )