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

fix code maketooltrajectory return values #17

Merged
merged 1 commit into from
Nov 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/robotis_manipulator/robotis_manipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,8 @@ bool RobotisManipulator::makeToolTrajectory(Name tool_name, double tool_goal_pos
{
return trajectory_.setToolGoalValue(tool_name, tool_value);
}
else
return false;
}

JointWaypoint RobotisManipulator::getTrajectoryJointValue(double tick_time) //Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,14 @@ bool Trajectory::makeCustomTrajectory(Name trajectory_name, TaskWaypoint start_w
bool Trajectory::setToolGoalPosition(Name tool_name, double tool_goal_position)
{
manipulator_.setJointPosition(tool_name, tool_goal_position);
return true;
}


bool Trajectory::setToolGoalValue(Name tool_name, JointValue tool_goal_value)
{
manipulator_.setJointValue(tool_name, tool_goal_value);
return true;
}

double Trajectory::getToolGoalPosition(Name tool_name)
Expand Down