Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-talos
Commits
ef027786
Commit
ef027786
authored
May 16, 2018
by
Olivier Stasse
Browse files
Add timeStep to sot-talos-controller.cpp
parent
5ed94a6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/sot-talos-controller.cpp
View file @
ef027786
...
...
@@ -71,6 +71,8 @@ void SoTTalosController::init()
boost
::
unique_lock
<
boost
::
mutex
>
lock
(
mut
);
cond
.
wait
(
lock
);
double
ts
=
ros
::
param
::
param
<
double
>
(
"/sot_controller/dt"
,
SoTTalosDevice
::
TIMESTEP_DEFAULT
);
device_
.
timeStep
(
ts
);
}
SoTTalosController
::~
SoTTalosController
()
...
...
src/sot-talos-device.hh
View file @
ef027786
...
...
@@ -56,6 +56,8 @@ dgsot::Device
void
getControl
(
std
::
map
<
std
::
string
,
dgsot
::
ControlValues
>
&
anglesOut
);
void
timeStep
(
double
ts
)
{
timestep_
=
ts
;}
protected:
/// \brief Current integration step.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment