Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
plugins
laser
Commits
cdc71191
Commit
cdc71191
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
New constructor agreeing with general wolf API norms
parent
f09f2d07
No related branches found
No related tags found
2 merge requests
!30
Release after RAL
,
!29
After 2nd RAL submission
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/laser/sensor/sensor_laser_2D.h
+1
-0
1 addition, 0 deletions
include/laser/sensor/sensor_laser_2D.h
src/sensor/sensor_laser_2D.cpp
+9
-4
9 additions, 4 deletions
src/sensor/sensor_laser_2D.cpp
with
10 additions
and
4 deletions
include/laser/sensor/sensor_laser_2D.h
+
1
−
0
View file @
cdc71191
...
...
@@ -56,6 +56,7 @@ class SensorLaser2D : public SensorBase
SensorLaser2D
(
StateBlockPtr
_p_ptr
,
StateBlockPtr
_o_ptr
,
const
laserscanutils
::
LaserScanParams
&
_params
);
SensorLaser2D
(
StateBlockPtr
_p_ptr
,
StateBlockPtr
_o_ptr
,
const
IntrinsicsLaser2D
&
_params
);
SensorLaser2D
(
StateBlockPtr
_p_ptr
,
StateBlockPtr
_o_ptr
,
IntrinsicsLaser2DPtr
_params
);
SensorLaser2D
(
const
Eigen
::
VectorXs
&
_extrinsics
,
IntrinsicsLaser2DPtr
_params
);
virtual
~
SensorLaser2D
();
...
...
This diff is collapsed.
Click to expand it.
src/sensor/sensor_laser_2D.cpp
+
9
−
4
View file @
cdc71191
#include
"laser/sensor/sensor_laser_2D.h"
#include
"core/state_block/state_block.h"
#include
"core/state_block/state_angle.h"
namespace
wolf
{
...
...
@@ -36,6 +37,13 @@ SensorLaser2D::SensorLaser2D(StateBlockPtr _p_ptr, StateBlockPtr _o_ptr, Intrins
//
}
SensorLaser2D
::
SensorLaser2D
(
const
Eigen
::
VectorXs
&
_extrinsics
,
IntrinsicsLaser2DPtr
_params
)
:
SensorLaser2D
(
std
::
make_shared
<
StateBlock
>
(
_extrinsics
.
head
(
2
),
true
,
nullptr
),
std
::
make_shared
<
StateAngle
>
(
_extrinsics
(
2
),
true
),
_params
)
{
}
SensorLaser2D
::~
SensorLaser2D
()
{
//
...
...
@@ -103,9 +111,6 @@ SensorBasePtr SensorLaser2D::createAutoConf(const std::string& _unique_name, con
//#include "intrinsics_factory.h"
namespace
wolf
{
WOLF_REGISTER_SENSOR
(
"LASER 2D"
,
SensorLaser2D
)
//const bool registered_laser_params = IntrinsicsFactory::get().registerCreator("LASER 2D", createIntrinsicsLaser2D);
}
// namespace wolf
#include
"core/sensor/autoconf_sensor_factory.h"
namespace
wolf
{
WOLF_REGISTER_SENSOR_AUTO
(
"LASER 2D"
,
SensorLaser2D
)
}
// namespace wolf
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