Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mobile_robotics
wolf_projects
wolf_lib
plugins
vision
Commits
57a491c9
Commit
57a491c9
authored
Apr 27, 2022
by
Joan Solà Ortega
Browse files
Rename getSensor(name) --> findSensor(name)
parent
aeb516f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
demos/demo_visual_odometry.cpp
View file @
57a491c9
...
...
@@ -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
->
get
Sensor
(
"sen cam"
));
SensorCameraPtr
sensor_cam
=
std
::
dynamic_pointer_cast
<
SensorCamera
>
(
problem
->
find
Sensor
(
"sen cam"
));
// ProcessorVisualOdometryPtr proc_vo = std::dynamic_pointer_cast<ProcessorVisualOdometry>(problem->getProcessor("proc vo"));
// ==============================================================================
...
...
test/gtest_processor_visual_odometry.cpp
View file @
57a491c9
...
...
@@ -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->
get
Sensor("sen cam"));
// SensorCameraPtr cam_ptr = std::dynamic_pointer_cast<SensorCamera>(problem->
find
Sensor("sen cam"));
// ProcessorVisualOdometryPtr proc_vo_ptr;
// for (auto proc : problem->
get
Sensor("sen cam")->getProcessorList()){
// for (auto proc : problem->
find
Sensor("sen cam")->getProcessorList()){
// proc_vo_ptr = std::dynamic_pointer_cast<ProcessorVisualOdometry>(proc);
// }
//
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment