Skip to content

Commit

Permalink
add getTrajectory function and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HPaper committed Feb 11, 2019
1 parent 7b5d6a4 commit 7f1d45c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/robotis_manipulator/robotis_manipulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ class RobotisManipulator
/*****************************************************************************
** Trajectory Control Fuction
*****************************************************************************/
Trajectory *getTrajectory();

void makeJointTrajectoryFromPresentPosition(std::vector<double> delta_goal_joint_position, double move_time, std::vector<JointValue> present_joint_value = {});
void makeJointTrajectory(std::vector<double> goal_joint_position, double move_time, std::vector<JointValue> present_joint_value = {});
void makeJointTrajectory(std::vector<JointValue> goal_joint_value, double move_time, std::vector<JointValue> present_joint_value = {});
Expand Down
7 changes: 6 additions & 1 deletion src/robotis_manipulator/robotis_manipulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Manipulator *RobotisManipulator::getManipulator()

JointValue RobotisManipulator::getJointValue(Name joint_name)
{
return manipulator_,getJointValue(joint_name);
return manipulator_.getJointValue(joint_name);
}

JointValue RobotisManipulator::getToolValue(Name tool_name)
Expand Down Expand Up @@ -910,6 +910,11 @@ bool RobotisManipulator::checkJointLimit(std::vector<Name> component_name, std::
/*****************************************************************************
** Trajectory Control Fuction
*****************************************************************************/
Trajectory *RobotisManipulator::getTrajectory()
{
return &trajectory_;
}

void RobotisManipulator::makeJointTrajectoryFromPresentPosition(std::vector<double> delta_goal_joint_position, double move_time, std::vector<JointValue> present_joint_value)
{
if(present_joint_value.size() != 0)
Expand Down

0 comments on commit 7f1d45c

Please sign in to comment.