Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionnal hand_frame_control initialization from ros parameters #157

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cartesian_force_controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ my_cartesian_force_controller:
end_effector_link: "tool0"
robot_base_link: "base_link"
ft_sensor_ref_link: "sensor_link"
hand_frame_control: true
joints:
- joint1
- joint2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ init(HardwareInterface* hw, ros::NodeHandle& nh)
return false;
}

if(nh.hasParam("hand_frame_control"))
{
if (!nh.getParam("hand_frame_control",m_hand_frame_control))
{
ROS_ERROR_STREAM("Failed to load " << nh.getNamespace() + "/hand_frame_control" << " from parameter server");
return false;
}
}

// Make sure sensor link is part of the robot chain
if(!Base::robotChainContains(m_ft_sensor_ref_link))
{
Expand Down