Summary
resend_robot_program service fails randomly after switching between remote to manual mode and back
Versions
- ROS Driver version: master
- Affected Robot Software Version(s): URSoftware 5.10.2.106319 (May 04 2021)
- Affected Robot Hardware Version(s): ur10e
- Robot Serial Number:
- UR+ product(s) installed:
- URCaps Software version(s):
Impact
The headless mode is useless with this behavior
Issue details
We are trying to use headless mode in our project. Until now we used the externalcontrol-1.0.5.urcap for controlling the robot and it worked well. We removed/disabled the external control program from polyscope and started ur_robot_driver with headless_mode:=true. Our software starts parallelly with the driver and waits for all services exposed by it. After that waits for robot mode and safety mode to be ok. Also it polls the robot to check that it is in remote control mode. After everything is ok we also check if program is running and we call the stop service and then the send_robot_program service is called. This procedure is repeated when any of robot mode, safety mode and remote mode changes. When the resend_robot_program is called at startup we get these errors: "Sending data through socket failed.", "Could not send program to robot" and "Could not resend robot program". As a workaround we put 10 sec sleep in our application's init function after waiting services to give ur_robot_driver more time to fully start. Then the service worked correctly. But we still get randomly these errors when we switch the robot from remote to manual mode and vice versa."
Use Case and Setup
Project status at point of discovered
When we tried to use headless_mode
Steps to Reproduce
- Start the driver with (use correct robot ip): roslaunch ur_robot_driver ur10e_bringup.launch robot_ip:=x.x.x.x headless_mode:=true
- Switch the robot from remote to manual mode and vice versa.
- Try to call resend_robot_program service
Expected Behavior
resend_robot_program service to execute successfully. Running program state visible in teach pendant.
Actual Behavior
resend_robot_program service fails with these errors: "Sending data through socket failed.", "Could not send program to robot" and "Could not resend robot program"
Workaround Suggestion
Workaround for startup sleep 10 sec
Summary
resend_robot_program service fails randomly after switching between remote to manual mode and back
Versions
Impact
The headless mode is useless with this behavior
Issue details
We are trying to use headless mode in our project. Until now we used the externalcontrol-1.0.5.urcap for controlling the robot and it worked well. We removed/disabled the external control program from polyscope and started ur_robot_driver with headless_mode:=true. Our software starts parallelly with the driver and waits for all services exposed by it. After that waits for robot mode and safety mode to be ok. Also it polls the robot to check that it is in remote control mode. After everything is ok we also check if program is running and we call the stop service and then the send_robot_program service is called. This procedure is repeated when any of robot mode, safety mode and remote mode changes. When the resend_robot_program is called at startup we get these errors: "Sending data through socket failed.", "Could not send program to robot" and "Could not resend robot program". As a workaround we put 10 sec sleep in our application's init function after waiting services to give ur_robot_driver more time to fully start. Then the service worked correctly. But we still get randomly these errors when we switch the robot from remote to manual mode and vice versa."
Use Case and Setup
Project status at point of discovered
When we tried to use headless_mode
Steps to Reproduce
Expected Behavior
resend_robot_program service to execute successfully. Running program state visible in teach pendant.
Actual Behavior
resend_robot_program service fails with these errors: "Sending data through socket failed.", "Could not send program to robot" and "Could not resend robot program"
Workaround Suggestion
Workaround for startup sleep 10 sec