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
6cec6ae9
Commit
6cec6ae9
authored
Jul 21, 2021
by
Paul Rouanet
Browse files
Modif variable name in init_robot (main_board_ptr)
parent
b2b04c4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ros2_control_bolt/include/system_bolt.hpp
View file @
6cec6ae9
...
...
@@ -210,6 +210,7 @@ private:
//robot
std
::
shared_ptr
<
odri_control_interface
::
Robot
>
robot_
;
double
motor_constants_
;
double
gear_ratios_
;
...
...
ros2_control_bolt/src/system_bolt.cpp
View file @
6cec6ae9
...
...
@@ -58,7 +58,7 @@ return_type SystemBoltHardware::init_robot(const hardware_interface::HardwareInf
eth_interface_
=
info_
.
hardware_parameters
.
at
(
"eth_interface"
);
// Define board (ODRI)
auto
main_board_ptr
_
=
std
::
make_shared
<
MasterBoardInterface
>
(
eth_interface_
);
auto
main_board_ptr
=
std
::
make_shared
<
MasterBoardInterface
>
(
eth_interface_
);
// Define joints (ODRI)
for
(
const
hardware_interface
::
ComponentInfo
&
joint
:
info
.
joints
)
{
...
...
@@ -82,7 +82,7 @@ return_type SystemBoltHardware::init_robot(const hardware_interface::HardwareInf
safety_damping_
=
stod
(
joint
.
parameters
.
at
(
"safety_damping"
));
}
auto
joints
=
std
::
make_shared
<
JointModules
>
(
main_board_ptr
_
,
auto
joints
=
std
::
make_shared
<
JointModules
>
(
main_board_ptr
,
motor_numbers_
,
motor_constants_
,
gear_ratios_
,
...
...
@@ -106,11 +106,11 @@ return_type SystemBoltHardware::init_robot(const hardware_interface::HardwareInf
}
}
auto
imu
=
std
::
make_shared
<
IMU
>
(
main_board_ptr
_
,
rotate_vector_
,
orientation_vector_
);
main_board_ptr
,
rotate_vector_
,
orientation_vector_
);
// Define the robot (ODRI).
robot_
=
std
::
make_shared
<
Robot
>
(
main_board_ptr
_
,
joints
,
imu
);
robot_
=
std
::
make_shared
<
Robot
>
(
main_board_ptr
,
joints
,
imu
);
// Initialize gains
kp_
=
0.0
;
...
...
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