25 #ifndef ROBOTIS_MANIPULATOR_H_ 26 #define ROBOTIS_MANIPULATOR_H_ 87 Eigen::Vector3d world_position = Eigen::Vector3d::Zero(),
88 Eigen::Matrix3d world_orientation = Eigen::Matrix3d::Identity());
108 Eigen::Vector3d relative_position,
109 Eigen::Matrix3d relative_orientation,
110 Eigen::Vector3d axis_of_rotation = Eigen::Vector3d::Zero(),
111 int8_t joint_actuator_id = -1,
112 double max_position_limit = M_PI,
113 double min_position_limit = -M_PI,
114 double coefficient = 1.0,
116 Eigen::Matrix3d inertia_tensor = Eigen::Matrix3d::Identity(),
117 Eigen::Vector3d center_of_mass = Eigen::Vector3d::Zero());
134 Eigen::Vector3d relative_position,
135 Eigen::Matrix3d relative_orientation,
137 double max_position_limit =M_PI,
138 double min_position_limit = -M_PI,
139 double coefficient = 1.0,
141 Eigen::Matrix3d inertia_tensor = Eigen::Matrix3d::Identity(),
142 Eigen::Vector3d center_of_mass = Eigen::Vector3d::Zero());
458 bool checkJointLimit(std::vector<Name> component_name, std::vector<double> position_vector);
465 bool checkJointLimit(std::vector<Name> component_name, std::vector<JointValue> value_vector);
489 void makeJointTrajectory(std::vector<double> goal_joint_position,
double move_time, std::vector<JointValue> present_joint_value = {});
496 void makeJointTrajectory(std::vector<JointValue> goal_joint_value,
double move_time, std::vector<JointValue> present_joint_value = {});
504 void makeJointTrajectory(
Name tool_name, Eigen::Vector3d goal_position,
double move_time, std::vector<JointValue> present_joint_value = {});
512 void makeJointTrajectory(
Name tool_name, Eigen::Matrix3d goal_orientation,
double move_time, std::vector<JointValue> present_joint_value = {});
552 void makeTaskTrajectory(
Name tool_name, Eigen::Vector3d goal_position,
double move_time, std::vector<JointValue> present_joint_value = {});
560 void makeTaskTrajectory(
Name tool_name, Eigen::Matrix3d goal_orientation,
double move_time, std::vector<JointValue> present_joint_value = {});
584 void makeCustomTrajectory(
Name trajectory_name,
Name tool_name,
const void *arg,
double move_time, std::vector<JointValue> present_joint_value = {});
592 void makeCustomTrajectory(
Name trajectory_name,
const void *arg,
double move_time, std::vector<JointValue> present_joint_value = {});
598 void sleepTrajectory(
double wait_time, std::vector<JointValue> present_joint_value = {});
void enableAllActuator()
enableAllActuator
uint8_t getToolActuatorId(Name actuator_name)
getToolActuatorId
void enableAllToolActuator()
enableAllToolActuator
void makeToolTrajectory(Name tool_name, double tool_goal_position)
makeToolTrajectory
std::vector< JointValue > getToolGoalValue()
getToolGoalValue
std::vector< JointValue > receiveMultipleToolActuatorValue(std::vector< Name > tool_component_name)
receiveMultipleToolActuatorValue
std::vector< JointValue > getAllToolValue()
getAllToolValue
virtual ~RobotisManipulator()
bool getActuatorEnabledState(Name actuator_name)
getActuatorEnabledState
void disableActuator(Name actuator_name)
disableActuator
std::vector< JointValue > receiveAllJointActuatorValue()
receiveAllJointActuatorValue
void addJoint(Name my_name, Name parent_name, Name child_name, Eigen::Vector3d relative_position, Eigen::Matrix3d relative_orientation, Eigen::Vector3d axis_of_rotation=Eigen::Vector3d::Zero(), int8_t joint_actuator_id=-1, double max_position_limit=M_PI, double min_position_limit=-M_PI, double coefficient=1.0, double mass=0.0, Eigen::Matrix3d inertia_tensor=Eigen::Matrix3d::Identity(), Eigen::Vector3d center_of_mass=Eigen::Vector3d::Zero())
addJoint
void disableAllJointActuator()
disableAllJointActuator
bool sendAllToolActuatorValue(std::vector< JointValue > value_vector)
sendAllToolActuatorValue
JointValue getToolValue(Name tool_name)
getToolValue
KinematicPose getKinematicPose(Name component_name)
getKinematicPose
bool sendMultipleJointActuatorValue(std::vector< Name > joint_component_name, std::vector< JointValue > value_vector)
sendMultipleJointActuatorValue
void addWorld(Name world_name, Name child_name, Eigen::Vector3d world_position=Eigen::Vector3d::Zero(), Eigen::Matrix3d world_orientation=Eigen::Matrix3d::Identity())
addWorld
std::vector< JointValue > receiveMultipleJointActuatorValue(std::vector< Name > joint_component_name)
receiveMultipleJointActuatorValue
JointValue receiveToolActuatorValue(Name tool_component_name)
receiveToolActuatorValue
void setToolActuatorMode(Name actuator_name, const void *arg)
setToolActuatorMode
std::vector< JointValue > getJointGoalValueFromTrajectoryTickTime(double tick_time)
getJointGoalValueFromTrajectoryTickTime
The CustomJointTrajectory class.
std::vector< JointValue > receiveAllToolActuatorValue()
receiveAllToolActuatorValue
std::vector< JointValue > JointWaypoint
void makeJointTrajectory(std::vector< double > goal_joint_position, double move_time, std::vector< JointValue > present_joint_value={})
makeJointTrajectory
Trajectory * getTrajectory()
getTrajectory
void addToolActuator(Name tool_name, ToolActuator *tool_actuator, uint8_t id, const void *arg)
addToolActuator
void sleepTrajectory(double wait_time, std::vector< JointValue > present_joint_value={})
sleepTrajectory
std::vector< JointValue > getAllJointValue()
getAllJointValue
bool trajectory_initialized_state_
JointValue getJointValue(Name joint_name)
getJointValue
std::vector< JointValue > getJointGoalValueFromTrajectory(double present_time)
getJointGoalValueFromTrajectory
bool sendAllJointActuatorValue(std::vector< JointValue > value_vector)
sendAllJointActuatorValue
void addComponentChild(Name my_name, Name child_name)
addComponentChild
void enableAllJointActuator()
enableAllJointActuator
void solveForwardKinematics()
solveForwardKinematics
The RobotisManipulator class.
double getTrajectoryMoveTime()
getTrajectoryMoveTime
The CustomTaskTrajectory class.
bool sendMultipleToolActuatorValue(std::vector< Name > tool_component_name, std::vector< JointValue > value_vector)
sendMultipleToolActuatorValue
void disableAllToolActuator()
disableAllToolActuator
bool checkJointLimit(Name component_name, double position)
checkJointLimit
void makeTaskTrajectoryFromPresentPose(Name tool_name, Eigen::Vector3d position_meter, double move_time, std::vector< JointValue > present_joint_value={})
makeTaskTrajectoryFromPresentPose
std::vector< JointValue > getAllActiveJointValue()
getAllActiveJointValue
std::map< Name, ToolActuator * > tool_actuator_
void setJointActuatorMode(Name actuator_name, std::vector< uint8_t > id_array, const void *arg)
setJointActuatorMode
DynamicPose getDynamicPose(Name component_name)
getDynamicPose
std::vector< uint8_t > getJointActuatorId(Name actuator_name)
getJointActuatorId
void addKinematics(Kinematics *kinematics)
addKinematics
bool actuator_added_stete_
void enableActuator(Name actuator_name)
enableActuator
void makeJointTrajectoryFromPresentPosition(std::vector< double > delta_goal_joint_position, double move_time, std::vector< JointValue > present_joint_value={})
makeJointTrajectoryFromPresentPosition
std::vector< double > getAllToolPosition()
getAllToolPosition
bool sendToolActuatorValue(Name tool_component_name, JointValue value)
sendToolActuatorValue
void setKinematicsOption(const void *arg)
setKinematicsOption
void addTool(Name my_name, Name parent_name, Eigen::Vector3d relative_position, Eigen::Matrix3d relative_orientation, int8_t tool_id=-1, double max_position_limit=M_PI, double min_position_limit=-M_PI, double coefficient=1.0, double mass=0.0, Eigen::Matrix3d inertia_tensor=Eigen::Matrix3d::Identity(), Eigen::Vector3d center_of_mass=Eigen::Vector3d::Zero())
addTool
JointWaypoint getTrajectoryJointValue(double tick_time)
getTrajectoryJointValue
bool solveInverseKinematics(Name tool_name, Pose goal_pose, std::vector< JointValue > *goal_joint_value)
solveInverseKinematics
void makeTaskTrajectory(Name tool_name, Eigen::Vector3d goal_position, double move_time, std::vector< JointValue > present_joint_value={})
makeTaskTrajectory
Eigen::MatrixXd jacobian(Name tool_name)
jacobian
std::map< Name, JointActuator * > joint_actuator_
void disableAllActuator()
disableAllActuator
void addCustomTrajectory(Name trajectory_name, CustomJointTrajectory *custom_trajectory)
addCustomTrajectory
Manipulator * getManipulator()
getManipulator
void startMoving()
startMoving
void setCustomTrajectoryOption(Name trajectory_name, const void *arg)
setCustomTrajectoryOption
void printManipulatorSetting()
printManipulatorSetting
void makeCustomTrajectory(Name trajectory_name, Name tool_name, const void *arg, double move_time, std::vector< JointValue > present_joint_value={})
makeCustomTrajectory
bool getMovingState()
getMovingState
Pose getPose(Name component_name)
getPose
void addJointActuator(Name actuator_name, JointActuator *joint_actuator, std::vector< uint8_t > id_array, const void *arg)
addJointActuator
JointValue receiveJointActuatorValue(Name joint_component_name)
receiveJointActuatorValue
bool sendJointActuatorValue(Name joint_component_name, JointValue value)
sendJointActuatorValue