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
60e46d2d
Commit
60e46d2d
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Small formatting
parent
3c10aacf
No related branches found
No related tags found
1 merge request
!318
CaptureMotion: replace origin_frame_ptr_ by capture_origin_ptr_.
Pipeline
#4268
passed
5 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/sensor/sensor_diff_drive.h
+8
-3
8 additions, 3 deletions
include/core/sensor/sensor_diff_drive.h
src/sensor/sensor_diff_drive.cpp
+7
-7
7 additions, 7 deletions
src/sensor/sensor_diff_drive.cpp
with
15 additions
and
10 deletions
include/core/sensor/sensor_diff_drive.h
+
8
−
3
View file @
60e46d2d
...
@@ -53,15 +53,20 @@ class SensorDiffDrive : public SensorBase
...
@@ -53,15 +53,20 @@ class SensorDiffDrive : public SensorBase
{
{
public:
public:
SensorDiffDrive
(
const
Eigen
::
VectorXs
&
_extrinsics
,
SensorDiffDrive
(
const
Eigen
::
VectorXs
&
_extrinsics
,
const
IntrinsicsDiffDrivePtr
&
_intrinsics
);
const
IntrinsicsDiffDrivePtr
&
_intrinsics
);
WOLF_SENSOR_CREATE
(
SensorDiffDrive
,
IntrinsicsDiffDrive
,
3
);
WOLF_SENSOR_CREATE
(
SensorDiffDrive
,
IntrinsicsDiffDrive
,
3
);
virtual
~
SensorDiffDrive
();
virtual
~
SensorDiffDrive
();
IntrinsicsDiffDriveConstPtr
getParams
()
const
{
return
params_diff_drive_
;}
IntrinsicsDiffDriveConstPtr
getParams
()
const
;
pr
otec
te
d
:
pr
iva
te:
IntrinsicsDiffDrivePtr
params_diff_drive_
;
IntrinsicsDiffDrivePtr
params_diff_drive_
;
};
};
inline
wolf
::
IntrinsicsDiffDriveConstPtr
SensorDiffDrive
::
getParams
()
const
{
return
params_diff_drive_
;
}
}
/* namespace wolf */
}
/* namespace wolf */
#endif
/* SENSOR_SENSOR_DIFF_DRIVE_H_ */
#endif
/* SENSOR_SENSOR_DIFF_DRIVE_H_ */
This diff is collapsed.
Click to expand it.
src/sensor/sensor_diff_drive.cpp
+
7
−
7
View file @
60e46d2d
...
@@ -12,13 +12,13 @@ namespace wolf
...
@@ -12,13 +12,13 @@ namespace wolf
{
{
SensorDiffDrive
::
SensorDiffDrive
(
const
Eigen
::
VectorXs
&
_extrinsics
,
SensorDiffDrive
::
SensorDiffDrive
(
const
Eigen
::
VectorXs
&
_extrinsics
,
const
IntrinsicsDiffDrivePtr
&
_intrinsics
)
:
const
IntrinsicsDiffDrivePtr
&
_intrinsics
)
:
SensorBase
(
"DIFF DRIVE"
,
SensorBase
(
"DIFF DRIVE"
,
std
::
make_shared
<
StateBlock
>
(
_extrinsics
.
head
(
2
),
true
),
std
::
make_shared
<
StateBlock
>
(
_extrinsics
.
head
(
2
),
true
),
std
::
make_shared
<
StateAngle
>
(
_extrinsics
(
2
),
true
),
std
::
make_shared
<
StateAngle
>
(
_extrinsics
(
2
),
true
),
std
::
make_shared
<
StateBlock
>
(
3
,
false
),
std
::
make_shared
<
StateBlock
>
(
3
,
false
),
2
),
2
),
params_diff_drive_
(
_intrinsics
)
params_diff_drive_
(
_intrinsics
)
{
{
params_diff_drive_
->
radians_per_tick
=
2.0
*
M_PI
/
params_diff_drive_
->
ticks_per_wheel_revolution
;
params_diff_drive_
->
radians_per_tick
=
2.0
*
M_PI
/
params_diff_drive_
->
ticks_per_wheel_revolution
;
getIntrinsic
()
->
setState
(
Eigen
::
Vector3s
(
_intrinsics
->
radius_left
,
_intrinsics
->
radius_right
,
_intrinsics
->
wheel_separation
));
getIntrinsic
()
->
setState
(
Eigen
::
Vector3s
(
_intrinsics
->
radius_left
,
_intrinsics
->
radius_right
,
_intrinsics
->
wheel_separation
));
...
...
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