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
Paul Rouanet
ros2_control_bolt
Commits
16edfe1e
Commit
16edfe1e
authored
Jul 22, 2021
by
Paul Rouanet
Browse files
Delete t and dt from write()
parent
d1bb4334
Changes
1
Hide whitespace changes
Inline
Side-by-side
ros2_control_bolt/src/system_bolt.cpp
View file @
16edfe1e
...
...
@@ -660,8 +660,6 @@ SystemBoltHardware::write()
Eigen
::
Vector6d
gain_KD
;
double
t
=
0.0
;
double
dt
=
0.001
;
std
::
chrono
::
time_point
<
std
::
chrono
::
system_clock
>
last
=
std
::
chrono
::
system_clock
::
now
();
while
(
!
robot_
->
IsTimeout
())
{
...
...
@@ -674,7 +672,6 @@ SystemBoltHardware::write()
// Control law
/*positions = ...;
torques = ...;*/
t
+=
dt
;
for
(
const
hardware_interface
::
ComponentInfo
&
joint
:
info_
.
joints
)
{
positions
[
joint_name_to_motor_nb_
[
joint
.
name
]]
=
hw_commands_
[
joint
.
name
].
position
;
...
...
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