23 #ifndef OPEN_MANIPULATOR_P_CONTROL_GUI_QNODE_HPP_ 24 #define OPEN_MANIPULATOR_P_CONTROL_GUI_QNODE_HPP_ 37 #include <QStringListModel> 39 #include <sensor_msgs/JointState.h> 40 #include <std_msgs/String.h> 42 #include <eigen3/Eigen/Eigen> 46 #include "open_manipulator_msgs/OpenManipulatorState.h" 47 #include "open_manipulator_msgs/SetJointPosition.h" 48 #include "open_manipulator_msgs/SetKinematicsPose.h" 49 #include "open_manipulator_msgs/SetDrawingTrajectory.h" 50 #include "open_manipulator_msgs/SetActuatorState.h" 52 #define NUM_OF_JOINT_AND_TOOL 7 67 QNode(
int argc,
char** argv );
84 void log(
const LogLevel &level,
const std::string &msg);
99 bool setJointSpacePath(std::vector<std::string> joint_name, std::vector<double> joint_angle,
double path_time);
100 bool setTaskSpacePath(std::vector<double> kinematics_pose,
double path_time);
std::vector< double > getPresentJointAngle()
ros::ServiceClient goal_tool_control_client_
void log(const LogLevel &level, const std::string &msg)
bool getOpenManipulatorMovingState()
bool setActuatorState(bool actuator_state)
ros::ServiceClient goal_drawing_trajectory_client_
void setOption(std::string opt)
ros::Subscriber open_manipulator_joint_states_sub_
Eigen::Quaterniond present_kinematics_orientation_
std::vector< double > present_kinematics_position_
void manipulatorStatesCallback(const open_manipulator_msgs::OpenManipulatorState::ConstPtr &msg)
Eigen::Quaterniond getPresentKinematicsOrientation()
void jointStatesCallback(const sensor_msgs::JointState::ConstPtr &msg)
ros::Subscriber open_manipulator_kinematics_pose_sub_
bool open_manipulator_actuator_enabled_
Eigen::Vector3d present_kinematics_orientation_rpy_
bool getWithGripperState()
QStringListModel * loggingModel()
std::vector< double > getPresentKinematicsPosition()
bool setJointSpacePath(std::vector< std::string > joint_name, std::vector< double > joint_angle, double path_time)
bool getOpenManipulatorActuatorState()
ros::Publisher open_manipulator_option_pub_
std::vector< double > present_joint_angle_
QNode(int argc, char **argv)
open_manipulator_msgs::KinematicsPose kinematics_pose_
bool setDrawingTrajectory(std::string name, std::vector< double > arg, double path_time)
bool setTaskSpacePath(std::vector< double > kinematics_pose, double path_time)
ros::ServiceClient goal_joint_space_path_client_
QStringListModel logging_model
Eigen::Vector3d getPresentKinematicsOrientationRPY()
ros::ServiceClient goal_task_space_path_position_only_client_
void kinematicsPoseCallback(const open_manipulator_msgs::KinematicsPose::ConstPtr &msg)
ros::Subscriber open_manipulator_states_sub_
bool open_manipulator_is_moving_
ros::ServiceClient goal_task_space_path_client_
ros::ServiceClient set_actuator_state_client_
bool setToolControl(std::vector< double > joint_angle)