Skip to content

Commit

Permalink
Fixed parent/child frame updates
Browse files Browse the repository at this point in the history
  • Loading branch information
akgoins committed Apr 19, 2016
1 parent 6e9bf78 commit 5fe5e43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions urdf_editor/src/joint_property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,12 +785,12 @@ namespace urdf_editor
else if (name == "Parent")
{
// Update parent link only
tf_->updateLink(joint_->parent_link_name, joint_->child_link_name, val.toString().toStdString(), joint_->child_link_name);
joint_->parent_link_name = val.toString().toStdString();
tf_->updateLink(joint_->parent_link_name, joint_->child_link_name, link_names_[val.toInt()].toStdString(), joint_->child_link_name);
joint_->parent_link_name = link_names_[val.toInt()].toStdString();
}
else if (name == "Child")
{
tf_->updateLink(joint_->parent_link_name, joint_->child_link_name, joint_->parent_link_name, val.toString().toStdString());
tf_->updateLink(joint_->parent_link_name, joint_->child_link_name, joint_->parent_link_name, link_names_[val.toInt()].toStdString());
joint_->child_link_name = link_names_[val.toInt()].toStdString();
// TODO: When child is changed need to change additional data within joint_
}
Expand Down

0 comments on commit 5fe5e43

Please sign in to comment.