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
73365ab0
Commit
73365ab0
authored
Apr 19, 2018
by
Joseph Mirabel
Committed by
Joseph Mirabel
May 09, 2018
Browse files
Read timestep from ROS param /sot/dt
parent
b8160279
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/sot-talos-controller.cpp
View file @
73365ab0
...
...
@@ -71,6 +71,8 @@ void SoTTalosController::init()
boost
::
unique_lock
<
boost
::
mutex
>
lock
(
mut
);
cond
.
wait
(
lock
);
double
ts
=
ros
::
param
::
param
<
double
>
(
"/sot/dt"
,
SoTTalosDevice
::
TIMESTEP_DEFAULT
);
device_
.
timeStep
(
ts
);
}
SoTTalosController
::~
SoTTalosController
()
...
...
src/sot-talos-device.hh
View file @
73365ab0
...
...
@@ -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
Supports
Markdown
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