Commit 57a491c9 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Rename getSensor(name) --> findSensor(name)

parent aeb516f4
......@@ -56,7 +56,7 @@ int main(int argc, char** argv)
problem->print(4,0,1,0);
// recover sensor pointers and other stuff for later use (access by sensor name)
SensorCameraPtr sensor_cam = std::dynamic_pointer_cast<SensorCamera>(problem->getSensor("sen cam"));
SensorCameraPtr sensor_cam = std::dynamic_pointer_cast<SensorCamera>(problem->findSensor("sen cam"));
// ProcessorVisualOdometryPtr proc_vo = std::dynamic_pointer_cast<ProcessorVisualOdometry>(problem->getProcessor("proc vo"));
// ==============================================================================
......
......@@ -232,9 +232,9 @@ TEST(ProcessorVisualOdometry, kltTrack)
// ProblemPtr problem = Problem::autoSetup(server);
//
// // Get sensor and processor
// SensorCameraPtr cam_ptr = std::dynamic_pointer_cast<SensorCamera>(problem->getSensor("sen cam"));
// SensorCameraPtr cam_ptr = std::dynamic_pointer_cast<SensorCamera>(problem->findSensor("sen cam"));
// ProcessorVisualOdometryPtr proc_vo_ptr;
// for (auto proc : problem->getSensor("sen cam")->getProcessorList()){
// for (auto proc : problem->findSensor("sen cam")->getProcessorList()){
// proc_vo_ptr = std::dynamic_pointer_cast<ProcessorVisualOdometry>(proc);
// }
//
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment