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
38eaf282
Commit
38eaf282
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Update sensor_diff_drive.h
parent
55d95c00
No related branches found
No related tags found
2 merge requests
!312
Adress 244: Do not use default yaml params
,
!305
WIP: Resolve "Do not use default YAML params"
Pipeline
#4144
passed
5 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/core/sensor/sensor_diff_drive.h
+7
-8
7 additions, 8 deletions
include/core/sensor/sensor_diff_drive.h
with
7 additions
and
8 deletions
include/core/sensor/sensor_diff_drive.h
+
7
−
8
View file @
38eaf282
...
...
@@ -20,20 +20,19 @@ struct IntrinsicsDiffDrive : public IntrinsicsBase
Scalar
radius_left
;
Scalar
radius_right
;
Scalar
wheel_separation
;
unsigned
int
ticks_per_wheel_revolution
;
Scalar
ticks_per_wheel_revolution
;
Scalar
radians_per_tick
;
///< Not user-definable -- DO NOT PRETEND TO USE YAML TO SET THIS PARAM.
IntrinsicsDiffDrive
()
=
default
;
IntrinsicsDiffDrive
(
std
::
string
_unique_name
,
const
wolf
::
ParamsServer
&
_server
)
:
IntrinsicsBase
(
_unique_name
,
_server
)
IntrinsicsDiffDrive
(
std
::
string
_unique_name
,
const
wolf
::
ParamsServer
&
_server
)
:
IntrinsicsBase
(
_unique_name
,
_server
)
{
radius_left
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/radius_left"
);
radius_right
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/radius_right"
);
wheel_separation
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/wheel_separation"
);
ticks_per_wheel_revolution
=
_server
.
getParam
<
unsigned
int
>
(
_unique_name
+
"/ticks_per_wheel_revolution"
);
radius_left
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/radius_left"
);
radius_right
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/radius_right"
);
wheel_separation
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/wheel_separation"
);
ticks_per_wheel_revolution
=
_server
.
getParam
<
Scalar
>
(
_unique_name
+
"/ticks_per_wheel_revolution"
);
radians_per_tick
=
2.0
*
M_PI
/
ticks_per_wheel_revolution
;
}
std
::
string
print
()
...
...
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