13 #include "dsr_robot.h" 31 float JReady[6] = {0, -20, 110, 0, 60, 0};
33 float J00[6] = {-180, 0, -145, 0, -35, 0};
34 float J01r[6] = {-180.0, 71.4, -145.0, 0.0, -9.7, 0.0};
39 CDsrRobot r1(nh,
"dsr01",
"m1013");
47 r1.movej(
J00, 20, 20);
50 r1.movej(
J01r, 20, 20);
57 CDsrRobot r2(nh,
"dsr02",
"m1013");
65 r2.movej(
J00, 20, 20);
68 r2.movej(
J01r, 20, 20);
140 dsr_msgs::RobotStop msg;
142 msg.stop_mode = STOP_TYPE_QUICK;
144 pubRobotStop.publish(msg);
145 pubRobotStop2.publish(msg);
150 int main(
int argc,
char** argv)
175 ROS_INFO(
"m1013x2_sync2_cpp finished !!!!!!!!!!!!!!!!!!!!!");
CRobotSync RobotSync(NUM_ROBOT)
void thread_robot2(ros::NodeHandle nh)
void thread_robot1(ros::NodeHandle nh)
void thread_robot6(ros::NodeHandle nh)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void thread_robot3(ros::NodeHandle nh)
void thread_robot4(ros::NodeHandle nh)
void thread_robot5(ros::NodeHandle nh)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSCPP_DECL void shutdown()
int main(int argc, char **argv)