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
9bacc7fd
Commit
9bacc7fd
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
hotfix state block vector size assert fail
parent
f99bebac
No related branches found
No related tags found
No related merge requests found
Pipeline
#4249
passed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/landmark/landmark_base.h
+5
-2
5 additions, 2 deletions
include/core/landmark/landmark_base.h
src/landmark/landmark_base.cpp
+1
-1
1 addition, 1 deletion
src/landmark/landmark_base.cpp
with
6 additions
and
3 deletions
include/core/landmark/landmark_base.h
+
5
−
2
View file @
9bacc7fd
...
@@ -168,8 +168,11 @@ inline std::vector<StateBlockPtr>& LandmarkBase::getStateBlockVec()
...
@@ -168,8 +168,11 @@ inline std::vector<StateBlockPtr>& LandmarkBase::getStateBlockVec()
inline
StateBlockPtr
LandmarkBase
::
getStateBlock
(
unsigned
int
_i
)
const
inline
StateBlockPtr
LandmarkBase
::
getStateBlock
(
unsigned
int
_i
)
const
{
{
assert
(
_i
<
state_block_vec_
.
size
()
&&
"Requested a state block pointer out of the vector range!"
);
// assert (_i < state_block_vec_.size() && "Requested a state block pointer out of the vector range!");
return
state_block_vec_
[
_i
];
if
(
_i
<
state_block_vec_
.
size
())
return
state_block_vec_
[
_i
];
else
return
nullptr
;
}
}
inline
void
LandmarkBase
::
setStateBlock
(
unsigned
int
_i
,
StateBlockPtr
_sb_ptr
)
inline
void
LandmarkBase
::
setStateBlock
(
unsigned
int
_i
,
StateBlockPtr
_sb_ptr
)
...
...
This diff is collapsed.
Click to expand it.
src/landmark/landmark_base.cpp
+
1
−
1
View file @
9bacc7fd
...
@@ -156,7 +156,7 @@ YAML::Node LandmarkBase::saveToYaml() const
...
@@ -156,7 +156,7 @@ YAML::Node LandmarkBase::saveToYaml() const
node
[
"position"
]
=
getP
()
->
getState
();
node
[
"position"
]
=
getP
()
->
getState
();
node
[
"position fixed"
]
=
getP
()
->
isFixed
();
node
[
"position fixed"
]
=
getP
()
->
isFixed
();
}
}
if
(
getO
()
!=
nullptr
)
if
(
state_block_vec_
.
size
()
>
1
&&
getO
()
!=
nullptr
)
{
{
node
[
"orientation"
]
=
getO
()
->
getState
();
node
[
"orientation"
]
=
getO
()
->
getState
();
node
[
"orientation fixed"
]
=
getO
()
->
isFixed
();
node
[
"orientation fixed"
]
=
getO
()
->
isFixed
();
...
...
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