Skip to content

Commit

Permalink
Merge pull request #16 from youbot/hydro-devel
Browse files Browse the repository at this point in the history
merge from hydro-devel
  • Loading branch information
wnowak authored Oct 13, 2017
2 parents d038803 + e92637f commit 82dc92e
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 276 deletions.
36 changes: 18 additions & 18 deletions include/youbot_driver_ros_interface/YouBotOODLWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,18 @@ class YouBotOODLWrapper
void armVelocitiesCommandCallback(const brics_actuator::JointVelocitiesConstPtr& youbotArmCommand, int armIndex);

/**
* @brief Callback that is executed when an action goal to perform a joint trajectory with the arm comes in.
* @param youbotArmGoal Actionlib goal that contains the trajectory.
* @param armIndex Index that identifies the arm
*/
void armJointTrajectoryGoalCallback(actionlib::ActionServer<control_msgs::FollowJointTrajectoryAction>::GoalHandle youbotArmGoal, unsigned int armIndex);

/**
* @brief Callback that is executed when an action goal of a joint trajectory is canceled.
* @param youbotArmGoal Actionlib goal that contains the trajectory.
* @param armIndex Index that identifies the arm
*/
void armJointTrajectoryCancelCallback(actionlib::ActionServer<control_msgs::FollowJointTrajectoryAction>::GoalHandle youbotArmGoal, unsigned int armIndex);
* @brief Callback that is executed when an action goal to perform a joint trajectory with the arm comes in.
* @param youbotArmGoal Actionlib goal that contains the trajectory.
* @param armIndex Index that identifies the arm
*/
void armJointTrajectoryGoalCallback(actionlib::ActionServer<control_msgs::FollowJointTrajectoryAction>::GoalHandle youbotArmGoal, unsigned int armIndex);

/**
* @brief Callback that is executed when an action goal of a joint trajectory is canceled.
* @param youbotArmGoal Actionlib goal that contains the trajectory.
* @param armIndex Index that identifies the arm
*/
void armJointTrajectoryCancelCallback(actionlib::ActionServer<control_msgs::FollowJointTrajectoryAction>::GoalHandle youbotArmGoal, unsigned int armIndex);

/**
* @brief Callback that is executed when a position command for the gripper comes in.
Expand Down Expand Up @@ -251,14 +251,14 @@ class YouBotOODLWrapper
vector<sensor_msgs::JointState> armJointStateMessages;

/// The joint trajectory goal that is currently active.
actionlib::ActionServer<control_msgs::FollowJointTrajectoryAction>::GoalHandle armActiveJointTrajectoryGoal;
actionlib::ActionServer<control_msgs::FollowJointTrajectoryAction>::GoalHandle armActiveJointTrajectoryGoal;

/// Tell if a goal is currently active.
bool armHasActiveJointTrajectoryGoal;
/// Tell if a goal is currently active.
bool armHasActiveJointTrajectoryGoal;

youbot::GripperSensedBarPosition gripperBar1Position;
youbot::GripperSensedBarPosition gripperBar2Position;
int gripperCycleCounter;
youbot::GripperSensedBarPosition gripperBar1Position;
youbot::GripperSensedBarPosition gripperBar2Position;
int gripperCycleCounter;

//void executeActionServer(const control_msgs::FollowJointTrajectoryGoalConstPtr& goal, int armIndex);

Expand Down
Loading

0 comments on commit 82dc92e

Please sign in to comment.