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
3f2dafe6
Commit
3f2dafe6
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Remove sensor from processor constructor in macro createAutoConf
parent
52fa98ca
No related branches found
No related tags found
1 merge request
!313
WIP: Resolve "Processor constructors and creators requiring a sensor pointer?"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hello_wolf/processor_range_bearing.h
+0
-3
0 additions, 3 deletions
hello_wolf/processor_range_bearing.h
include/core/processor/processor_base.h
+1
-2
1 addition, 2 deletions
include/core/processor/processor_base.h
with
1 addition
and
5 deletions
hello_wolf/processor_range_bearing.h
+
0
−
3
View file @
3f2dafe6
...
...
@@ -53,9 +53,6 @@ class ProcessorRangeBearing : public ProcessorBase
static
ProcessorBasePtr
create
(
const
std
::
string
&
_unique_name
,
const
ProcessorParamsBasePtr
_params
,
const
SensorBasePtr
sensor_ptr
=
nullptr
);
// static ProcessorBasePtr createAutoConf(const std::string& _unique_name,
// const ParamsServer& _server,
// const SensorBasePtr _sensor_ptr = nullptr);
WOLF_CREATE_PROCESSOR_AUTO
(
ProcessorRangeBearing
,
ProcessorParamsRangeBearing
,
SensorRangeBearing
);
protected
:
...
...
This diff is collapsed.
Click to expand it.
include/core/processor/processor_base.h
+
1
−
2
View file @
3f2dafe6
...
...
@@ -35,10 +35,9 @@ static ProcessorBasePtr createAutoConf(const std::string& _unique_name,
const ParamsServer& _server, \
const SensorBasePtr _sensor) \
{ \
auto sensor = std::static_pointer_cast<SensorClass>(_sensor); \
auto params = std::make_shared<ProcessorParamsClass>(_unique_name, _server); \
\
auto processor = std::make_shared<ProcessorClass>(
sensor,
params); \
auto processor = std::make_shared<ProcessorClass>(params);
\
\
processor ->setName(_unique_name); \
\
...
...
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