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
c1edce33
Commit
c1edce33
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Remove copy constructor
parent
2a066737
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!421
Resolve "Address error : definition of implicit copy assignment operator..."
Pipeline
#6889
passed
3 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/core/state_block/state_composite.h
+0
-1
0 additions, 1 deletion
include/core/state_block/state_composite.h
src/sensor/sensor_base.cpp
+1
-1
1 addition, 1 deletion
src/sensor/sensor_base.cpp
src/state_block/state_composite.cpp
+13
-13
13 additions, 13 deletions
src/state_block/state_composite.cpp
with
14 additions
and
15 deletions
include/core/state_block/state_composite.h
+
0
−
1
View file @
c1edce33
...
...
@@ -31,7 +31,6 @@ class VectorComposite : public std::unordered_map < char, Eigen::VectorXd >
VectorComposite
()
{};
VectorComposite
(
const
StateStructure
&
_s
);
VectorComposite
(
const
StateStructure
&
_s
,
const
std
::
list
<
int
>&
_sizes
);
VectorComposite
(
const
VectorComposite
&
v
)
:
unordered_map
<
char
,
VectorXd
>
(
v
){};
/**
* \brief Construct from Eigen::VectorXd and structure
*
...
...
This diff is collapsed.
Click to expand it.
src/sensor/sensor_base.cpp
+
1
−
1
View file @
c1edce33
...
...
@@ -301,7 +301,7 @@ bool SensorBase::process(const CaptureBasePtr capture_ptr)
{
capture_ptr
->
setSensor
(
shared_from_this
());
for
(
const
auto
processor
:
processor_list_
)
for
(
const
auto
&
processor
:
processor_list_
)
{
#ifdef PROFILING
...
...
This diff is collapsed.
Click to expand it.
src/state_block/state_composite.cpp
+
13
−
13
View file @
c1edce33
...
...
@@ -112,9 +112,9 @@ wolf::VectorComposite operator +(const wolf::VectorComposite &_x, const wolf::Ve
return
xpy
;
}
wolf
::
VectorComposite
operator
-
(
const
wolf
::
VectorComposite
&
_x
,
const
wolf
::
VectorComposite
&
_y
)
VectorComposite
operator
-
(
const
VectorComposite
&
_x
,
const
VectorComposite
&
_y
)
{
wolf
::
VectorComposite
xpy
;
VectorComposite
xpy
;
for
(
const
auto
&
pair_i_xi
:
_x
)
{
const
auto
&
i
=
pair_i_xi
.
first
;
...
...
@@ -124,6 +124,17 @@ wolf::VectorComposite operator -(const wolf::VectorComposite &_x, const wolf::Ve
return
xpy
;
}
VectorComposite
operator
-
(
const
wolf
::
VectorComposite
&
_x
)
{
wolf
::
VectorComposite
m
;
for
(
const
auto
&
pair_i_xi
:
_x
)
{
const
auto
&
i
=
pair_i_xi
.
first
;
m
.
emplace
(
i
,
-
_x
.
at
(
i
));
}
return
m
;
}
void
VectorComposite
::
set
(
const
VectorXd
&
_v
,
const
StateStructure
&
_structure
,
const
std
::
list
<
int
>&
_sizes
)
{
int
index
=
0
;
...
...
@@ -145,17 +156,6 @@ void VectorComposite::setZero()
pair_key_vec
.
second
.
setZero
();
}
wolf
::
VectorComposite
operator
-
(
const
wolf
::
VectorComposite
&
_x
)
{
wolf
::
VectorComposite
m
;
for
(
const
auto
&
pair_i_xi
:
_x
)
{
const
auto
&
i
=
pair_i_xi
.
first
;
m
.
emplace
(
i
,
-
_x
.
at
(
i
));
}
return
m
;
}
////// MATRIX COMPOSITE //////////
bool
MatrixComposite
::
emplace
(
const
char
&
_row
,
const
char
&
_col
,
const
Eigen
::
MatrixXd
&
_mat_blk
)
...
...
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