00001 #include "SIGEL_GP/SIG_GPSimpleRecorder.h" 00002 00003 #include <cmath> 00004 00005 SIGEL_GP::SIG_GPSimpleRecorder::SIG_GPSimpleRecorder() 00006 : SIGEL_Simulation::SIG_Recorder(), 00007 start(0,0,0), 00008 end(0,0,0) 00009 { 00010 00011 }; 00012 00013 void SIGEL_GP::SIG_GPSimpleRecorder::init() 00014 throw (SIGEL_Simulation::SIG_RecorderNoQueriesSetException, 00015 SIGEL_Simulation::SIG_RecorderBadRecordingOrderException) 00016 { 00017 SIGEL_Simulation::SIG_Recorder::init(); 00018 00019 int rootLinkNumber = simulationQueries->getRootNumber(); 00020 00021 start = simulationQueries->getLinkPosition( rootLinkNumber ); 00022 00023 startRotation = simulationQueries->getLinkOrientation( rootLinkNumber ); 00024 }; 00025 00026 void SIGEL_GP::SIG_GPSimpleRecorder::record() 00027 throw (SIGEL_Simulation::SIG_RecorderNoQueriesSetException, 00028 SIGEL_Simulation::SIG_RecorderBadRecordingOrderException) 00029 { }; 00030 00031 void SIGEL_GP::SIG_GPSimpleRecorder::finish() 00032 throw (SIGEL_Simulation::SIG_RecorderNoQueriesSetException, 00033 SIGEL_Simulation::SIG_RecorderBadRecordingOrderException) 00034 { 00035 SIGEL_Simulation::SIG_Recorder::finish(); 00036 00037 int rootLinkNumber = simulationQueries->getRootNumber(); 00038 00039 end = simulationQueries->getLinkPosition( rootLinkNumber ); 00040 endRotation = simulationQueries->getLinkOrientation( rootLinkNumber ); 00041 };