在ROS下控制dobot(magician)机械手的IO口输出demo
这里就使用IO17号口来进行输出12V #include "ros/ros.h" #include "std_msgs/String.h" #include "dobot/SetCmdTimeout.h" #include "dobot/SetQueuedCmdClear.h" #include "dobot/SetQueuedCmdStartExec.h" #include "dobot/SetQueuedCmdForceStopExec.h" #include "dobot/GetDeviceVersion.h" #include "dobot/SetEndEffectorParams.h" #include "dobot/SetPTPJointParams.h" #include "dobot/SetPTPCoordinateParams.h" #include "dobot/SetPTPJumpParams.h" #include "dobot/SetPTPCommonParams.h" #include "dobot/SetPTPCmd.h" #include "dobot/SetIODO.h" #include "dobot/GetIODO.h" #include "dobot/SetIOMultiplexing.h" #include "iostream" using