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
5ebfe71a
Commit
5ebfe71a
authored
8 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add 'const' keyword to some getters
parent
7718bd23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!101
Visual SLAM starts to work.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/constraint_base.h
+6
-6
6 additions, 6 deletions
src/constraint_base.h
with
6 additions
and
6 deletions
src/constraint_base.h
+
6
−
6
View file @
5ebfe71a
...
@@ -119,17 +119,17 @@ class ConstraintBase : public NodeBase, public std::enable_shared_from_this<Cons
...
@@ -119,17 +119,17 @@ class ConstraintBase : public NodeBase, public std::enable_shared_from_this<Cons
/** \brief Returns a pointer to the frame constrained to
/** \brief Returns a pointer to the frame constrained to
**/
**/
FrameBasePtr
getFrameOtherPtr
();
FrameBasePtr
getFrameOtherPtr
()
const
;
void
setFrameOtherPtr
(
FrameBasePtr
_frm_o
){
frame_other_ptr_
=
_frm_o
;}
void
setFrameOtherPtr
(
FrameBasePtr
_frm_o
){
frame_other_ptr_
=
_frm_o
;}
/** \brief Returns a pointer to the feature constrained to
/** \brief Returns a pointer to the feature constrained to
**/
**/
FeatureBasePtr
getFeatureOtherPtr
();
FeatureBasePtr
getFeatureOtherPtr
()
const
;
void
setFeatureOtherPtr
(
FeatureBasePtr
_ftr_o
){
feature_other_ptr_
=
_ftr_o
;}
void
setFeatureOtherPtr
(
FeatureBasePtr
_ftr_o
){
feature_other_ptr_
=
_ftr_o
;}
/** \brief Returns a pointer to the landmark constrained to
/** \brief Returns a pointer to the landmark constrained to
**/
**/
LandmarkBasePtr
getLandmarkOtherPtr
();
LandmarkBasePtr
getLandmarkOtherPtr
()
const
;
void
setLandmarkOtherPtr
(
LandmarkBasePtr
_lmk_o
){
landmark_other_ptr_
=
_lmk_o
;}
void
setLandmarkOtherPtr
(
LandmarkBasePtr
_lmk_o
){
landmark_other_ptr_
=
_lmk_o
;}
ProblemPtr
getProblem
();
ProblemPtr
getProblem
();
...
@@ -209,17 +209,17 @@ inline void ConstraintBase::setApplyLossFunction(const bool _apply)
...
@@ -209,17 +209,17 @@ inline void ConstraintBase::setApplyLossFunction(const bool _apply)
}
}
}
}
inline
FrameBasePtr
ConstraintBase
::
getFrameOtherPtr
()
inline
FrameBasePtr
ConstraintBase
::
getFrameOtherPtr
()
const
{
{
return
frame_other_ptr_
.
lock
();
return
frame_other_ptr_
.
lock
();
}
}
inline
FeatureBasePtr
ConstraintBase
::
getFeatureOtherPtr
()
inline
FeatureBasePtr
ConstraintBase
::
getFeatureOtherPtr
()
const
{
{
return
feature_other_ptr_
.
lock
();
return
feature_other_ptr_
.
lock
();
}
}
inline
LandmarkBasePtr
ConstraintBase
::
getLandmarkOtherPtr
()
inline
LandmarkBasePtr
ConstraintBase
::
getLandmarkOtherPtr
()
const
{
{
return
landmark_other_ptr_
.
lock
();
return
landmark_other_ptr_
.
lock
();
}
}
...
...
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