YRC1000u starts moving after driver shutdown #558
-
I'm running ROS 1 and MoveIt to control the HC10DTP with YRC1000micro. I tried solving this by calling Any ideas on how to stop the robot from moving after I shut down ROS? I also thought of changing the robot to teach mode (via I/O) before shutdown which will probably prevent this, but this is just a work-around. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 31 replies
-
My recommendation would be to terminate the |
Beta Was this translation helpful? Give feedback.
-
FYI, the MotoRos driver has an internal motion buffering and continues to process motion up to the last position transmitted in the ROS_MSG_MOTO_MOTION_CTRL message sent. So if you are in the middle of transmitting a trajectory and them close ROS or loose connection, the motion may continue for a few seconds until it reaches the last transmitted target position. Unless you explicitely tell it to stop as per Ted indication above. |
Beta Was this translation helpful? Give feedback.
-
Could you clarify what you mean exactly by this? Is this after having submitted a trajectory goal, or even without one? It could be malfunctioning, but there are various places where nodes shutting down and/or motion-related classes being dtor-ed should abort any ongoing motion. Here fi: motoman/motoman_driver/src/joint_trajectory_streamer.cpp Lines 124 to 131 in 63e6242
|
Beta Was this translation helpful? Give feedback.
-
The only thing I can think of is that when MotoRos terminates, the INIT_ROS resumes executions, so if you have motions in the job or INIT_ROS was called from another job that has motion, then that motion would get executed. Can you give a bit more information about the motion occuring afterward... Could be that HC force sensor are not properly calibrated and the change of mode is activation the anti-clamping or avoidance function..? |
Beta Was this translation helpful? Give feedback.
-
@tall1 Can you also report what the job on the pendant is displaying when this is occurring. |
Beta Was this translation helpful? Give feedback.
-
It worked! Thanks! |
Beta Was this translation helpful? Give feedback.
It sounds like that's likely the issue. The JointMove command should not be in your job. The /robot_disable service causes the cursor to move off of the WAIT command and execute the next line.
Please replace the job with the file here: https://github.com/ros-industrial/motoman/tree/kinetic-devel/motoman_driver/Inform/DX200%2C%20FS100%2C%20YRC1000/single_arm