@@ -394,8 +394,8 @@ DynamixelHardware::export_command_interfaces()
394
394
for (auto it : hdl_gpio_controller_commands_) {
395
395
for (size_t i = 0 ; i < it.value_ptr_vec .size (); i++) {
396
396
if (i >= it.interface_name_vec .size ()) {
397
- RCLCPP_ERROR_STREAM (logger_, " Interface name vector size mismatch for gpio controller " << it. name <<
398
- " . Expected size: " << it.value_ptr_vec .size () <<
397
+ RCLCPP_ERROR_STREAM (logger_, " Interface name vector size mismatch for gpio controller " <<
398
+ it. name << " . Expected size: " << it.value_ptr_vec .size () <<
399
399
" , Actual size: " << it.interface_name_vec .size ());
400
400
continue ;
401
401
}
@@ -436,7 +436,8 @@ hardware_interface::CallbackReturn DynamixelHardware::start()
436
436
if (error_duration.seconds () * 1000 >= err_timeout_ms_) {
437
437
RCLCPP_ERROR_STREAM (
438
438
logger_,
439
- " Dynamixel Start Fail (Timeout: " << error_duration.seconds () * 1000 << " ms/" << err_timeout_ms_ << " ms): " << Dynamixel::DxlErrorToString (dxl_comm_err_));
439
+ " Dynamixel Start Fail (Timeout: " << error_duration.seconds () * 1000 << " ms/" <<
440
+ err_timeout_ms_ << " ms): " << Dynamixel::DxlErrorToString (dxl_comm_err_));
440
441
return hardware_interface::CallbackReturn::ERROR;
441
442
}
442
443
}
@@ -987,7 +988,9 @@ void DynamixelHardware::MapInterfaces(
987
988
auto map_it = iface_map.find (outer_iface);
988
989
if (map_it == iface_map.end ()) {
989
990
std::ostringstream oss;
990
- oss << " No mapping found for '" << outer_handlers.at (i).name << " ', interface '" << outer_iface << " '. Skipping. Available mapping keys: [" ;
991
+ oss << " No mapping found for '" << outer_handlers.at (i).name
992
+ << " ', interface '" << outer_iface
993
+ << " '. Skipping. Available mapping keys: [" ;
991
994
size_t key_count = 0 ;
992
995
for (const auto &pair : iface_map) {
993
996
oss << pair.first ;
@@ -1025,7 +1028,8 @@ void DynamixelHardware::MapInterfaces(
1025
1028
void DynamixelHardware::CalcTransmissionToJoint ()
1026
1029
{
1027
1030
std::function<double (double )> conv = use_revolute_to_prismatic_
1028
- ? std::function<double (double )>(std::bind (&DynamixelHardware::revoluteToPrismatic, this , std::placeholders::_1))
1031
+ ? std::function<double (double )>(
1032
+ std::bind (&DynamixelHardware::revoluteToPrismatic, this , std::placeholders::_1))
1029
1033
: std::function<double (double )>();
1030
1034
this ->MapInterfaces (
1031
1035
num_of_joints_,
@@ -1043,7 +1047,8 @@ void DynamixelHardware::CalcTransmissionToJoint()
1043
1047
void DynamixelHardware::CalcJointToTransmission ()
1044
1048
{
1045
1049
std::function<double (double )> conv = use_revolute_to_prismatic_
1046
- ? std::function<double (double )>(std::bind (&DynamixelHardware::prismaticToRevolute, this , std::placeholders::_1))
1050
+ ? std::function<double (double )>(
1051
+ std::bind (&DynamixelHardware::prismaticToRevolute, this , std::placeholders::_1))
1047
1052
: std::function<double (double )>();
1048
1053
this ->MapInterfaces (
1049
1054
num_of_transmissions_,
0 commit comments