From: Carle C. <car...@us...> - 2005-03-11 18:55:26
|
Update of /cvsroot/robotflow/RobotFlow/Behaviors/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12389/Behaviors/src Modified Files: Goto.cc Log Message: add completed result output Index: Goto.cc =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/Behaviors/src/Goto.cc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Goto.cc 6 Feb 2005 14:52:26 -0000 1.2 --- Goto.cc 11 Mar 2005 18:55:12 -0000 1.3 *************** *** 62,65 **** --- 62,69 ---- * @output_description Robot Rotation value (degrees/s) * + * @output_name COMPLETED + * @output_type bool + * @output_description Goto completion state + * * @output_name EXPLOITATION * @output_description Behavior exploitation *************** *** 110,113 **** --- 114,118 ---- int rotationID; int velocityID; + int completedID; *************** *** 135,139 **** rotationID = addOutput("ROTATION"); velocityID = addOutput("VELOCITY"); ! m_max_velocity = dereference_cast<int> (parameters.get("MAX_VELOCITY")); --- 140,144 ---- rotationID = addOutput("ROTATION"); velocityID = addOutput("VELOCITY"); ! completedID = addOutput("COMPLETED"); m_max_velocity = dereference_cast<int> (parameters.get("MAX_VELOCITY")); *************** *** 248,251 **** --- 253,257 ---- std::cout << "velocity: " << (*outputs[velocityID].buffer)[count] << std::endl; std::cout << std::endl; + (*outputs[completedID].buffer)[count] = ObjectRef(Bool::alloc(false)); } else *************** *** 257,260 **** --- 263,267 ---- std::cout << "velocity: " << (*outputs[velocityID].buffer)[count] << std::endl; std::cout << std::endl; + (*outputs[completedID].buffer)[count] = ObjectRef(Bool::alloc(true)); } *************** *** 265,268 **** --- 272,277 ---- (*outputs[rotationID].buffer)[count] = nilObject; (*outputs[velocityID].buffer)[count] = nilObject; + std::cout << "COMPLETED = NILOBJECT" << std::endl; + (*outputs[completedID].buffer)[count] = nilObject; } |