We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7da00d commit b1293feCopy full SHA for b1293fe
src/dynamixel_hardware_interface.cpp
@@ -1718,8 +1718,8 @@ bool DynamixelHardware::updateHomingOffsetsFromURDF(){
1718
if (calibration_element != nullptr) {
1719
const auto * rising_attr = calibration_element->FindAttribute("rising");
1720
if ((rising_attr != nullptr) && (name_attr != nullptr)) {
1721
- auto rising = std::atof(calibration_element->Attribute("rising"));
1722
- std::string name = joint_element->Attribute("name");
+ const auto rising = rising_attr->DoubleValue();
+ const std::string name = name_attr->Value();
1723
auto itr = std::find_if(
1724
info_.joints.begin(), info_.joints.end(),
1725
[&name](const hardware_interface::ComponentInfo & joint) { return joint.name == name; });
0 commit comments