Skip to content

Commit

Permalink
Reset joints to reload config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ShotaAk committed Mar 4, 2024
1 parent 0e05885 commit 6fb42d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rt_manipulators_lib/src/config_file_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ bool parse(const std::string& config_yaml, hardware_joints::Joints & parsed_join
return false;
}

// Reset parsed_joints
parsed_joints = hardware_joints::Joints();

YAML::Node config = YAML::LoadFile(config_yaml);
for (const auto & config_joint_group : config["joint_groups"]) {
auto group_name = config_joint_group.first.as<std::string>();
Expand Down

0 comments on commit 6fb42d7

Please sign in to comment.