Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
5d9c4893
There was a problem fetching the pipeline metadata.
Commit
5d9c4893
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
fix assert when empty file name
parent
33e7505b
No related branches found
No related tags found
1 merge request
!201
FIX vision_utils global path and check existence of (install)Sensor and…
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/problem.cpp
+2
-3
2 additions, 3 deletions
src/problem.cpp
with
2 additions
and
3 deletions
src/problem.cpp
+
2
−
3
View file @
5d9c4893
...
...
@@ -99,10 +99,10 @@ SensorBasePtr Problem::installSensor(const std::string& _sen_type, //
const
Eigen
::
VectorXs
&
_extrinsics
,
//
const
std
::
string
&
_intrinsics_filename
)
{
assert
(
file_exists
(
_intrinsics_filename
)
&&
"Cannot install sensor: intrinsics' YAML file does not exist."
);
if
(
_intrinsics_filename
!=
""
)
{
assert
(
file_exists
(
_intrinsics_filename
)
&&
"Cannot install sensor: intrinsics' YAML file does not exist."
);
IntrinsicsBasePtr
intr_ptr
=
IntrinsicsFactory
::
get
().
create
(
_sen_type
,
_intrinsics_filename
);
return
installSensor
(
_sen_type
,
_unique_sensor_name
,
_extrinsics
,
intr_ptr
);
}
...
...
@@ -143,8 +143,6 @@ ProcessorBasePtr Problem::installProcessor(const std::string& _prc_type, //
const
std
::
string
&
_corresponding_sensor_name
,
//
const
std
::
string
&
_params_filename
)
{
assert
(
file_exists
(
_params_filename
)
&&
"Cannot install processor: parameters' YAML file does not exist."
);
SensorBasePtr
sen_ptr
=
getSensorPtr
(
_corresponding_sensor_name
);
if
(
sen_ptr
==
nullptr
)
throw
std
::
runtime_error
(
"Sensor not found. Cannot bind Processor."
);
...
...
@@ -152,6 +150,7 @@ ProcessorBasePtr Problem::installProcessor(const std::string& _prc_type, //
return
installProcessor
(
_prc_type
,
_unique_processor_name
,
sen_ptr
,
nullptr
);
else
{
assert
(
file_exists
(
_params_filename
)
&&
"Cannot install processor: parameters' YAML file does not exist."
);
ProcessorParamsBasePtr
prc_params
=
ProcessorParamsFactory
::
get
().
create
(
_prc_type
,
_params_filename
);
return
installProcessor
(
_prc_type
,
_unique_processor_name
,
sen_ptr
,
prc_params
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment