12 int main(
int argc,
char ** argv){
15 cout <<
"usage log_plot <filename> | gnuplot" << endl;
20 cout <<
"no file " << argv[1] <<
" found" << endl;
39 cerr <<
"log size" << log.size() << endl;
40 for (SensorLog::iterator it=log.begin(); it!=log.end(); it++){
46 std::vector<Point> points(rr->size());
48 for (uint i=0; i<rr->size(); i++){
54 points[j++]=
Point(r*c,r*s);
58 sprintf(buf,
"frame-%05d.gif",frame);
60 cout <<
"set terminal gif" << endl;
61 cout <<
"set output \"" << buf <<
"\"" << endl;
62 cout <<
"set size ratio -1" << endl;
63 cout <<
"plot [-3:3][0:3] '-' w p ps 1" << endl;
64 for (uint i=0; i<j; i++){
65 cout << points[i].y <<
" " << points[i].x << endl;
const Sensor * getSensor() const
virtual SensorMap computeSensorMap() const
virtual std::istream & load(std::istream &is)
std::istream & load(std::istream &is)
std::map< std::string, Sensor * > SensorMap
int main(int argc, char **argv)
const std::vector< Beam > & beams() const