From: Chandan D. <wor...@gm...> - 2011-03-18 06:17:58
|
Hi, Did anyone try compiling the svn stage with player(svn). I get the following errors: Scanning dependencies of target stageplugin [ 81%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_driver.o [ 83%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_actarray.o [ 85%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_blobfinder.o [ 86%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_gripper.o [ 88%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_simulation.o [ 90%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_laser.o [ 91%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_fiducial.o [ 93%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_position.o [ 95%] Building CXX object libstageplugin/CMakeFiles/stageplugin.dir/p_sonar.o /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc: In member function ‘virtual void InterfaceSonar::Publish()’: /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:63: error: ‘Sensor’ was not declared in this scope /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:63: error: template argument 1 is invalid /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:63: error: template argument 2 is invalid /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:63: error: invalid type in declaration before ‘=’ token /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:63: error: invalid initialization of reference of type ‘const int&’ from expression of type ‘const std::vector<Stg::ModelRanger::Sensor, std::allocator<Stg::ModelRanger::Sensor> >’ /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:65: error: request for member ‘size’ in ‘sensors’, which is of non-class type ‘const int’ /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:75: error: invalid types ‘const int[unsigned int]’ for array subscript /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc: In member function ‘virtual int InterfaceSonar::ProcessMessage(QueuePointer&, player_msghdr_t*, void*)’: /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:100: error: ‘Sensor’ was not declared in this scope /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:100: error: template argument 1 is invalid /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:100: error: template argument 2 is invalid /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:100: error: invalid type in declaration before ‘=’ token /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:100: error: invalid initialization of reference of type ‘const int&’ from expression of type ‘const std::vector<Stg::ModelRanger::Sensor, std::allocator<Stg::ModelRanger::Sensor> >’ /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:101: error: request for member ‘size’ in ‘sensors’, which is of non-class type ‘const int’ /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:113: error: invalid types ‘const int[unsigned int]’ for array subscript /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:114: error: invalid types ‘const int[unsigned int]’ for array subscript /home/robot/playerstage/stagesrc/libstageplugin/p_sonar.cc:118: error: invalid types ‘const int[unsigned int]’ for array subscript make[2]: *** [libstageplugin/CMakeFiles/stageplugin.dir/p_sonar.o] Error 1 make[1]: *** [libstageplugin/CMakeFiles/stageplugin.dir/all] Error 2 make: *** [all] Error 2 -- Regards, Chandan |