mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
Re-add urscript topic (#7)
* Re-added UR script - for custom UR Script execution * Restarting the driver when robot closes the connection on script error. The pipelines work in the way that if the connection is is closed by the control PC, it will not be re-established. This happens for example if you use the URScript topic and upload script that does not compile. The robot will then close the connection, the pipeline will close and any subsequent uploads will fail and noone realises there is a problem. While we could re-establish the connection, I think much better solution is to shutdown the driver in such case. This is much more resilient behaviour as it will clean up any inconsistent driver state. We can utilise "respawn" feature of ROS launch and restart such driver automatically (launch files are updated as part of that change). On top of "production" stability, it allows for much nicer development workflow - you can use URScript topic for development of new scripts and have the driver restart every time you make mistake. Without it, any mistake requires restarting the driver manually.
This commit is contained in:
committed by
Simon Rasmussen
parent
24eef75d72
commit
6950b3c4bd
@@ -14,6 +14,7 @@
|
||||
<arg name="max_velocity" default="10.0"/> <!-- [rad/s] -->
|
||||
<arg name="base_frame" default="$(arg prefix)base" />
|
||||
<arg name="tool_frame" default="$(arg prefix)tool0_controller" />
|
||||
<arg name="shutdown_on_disconnect" default="true" />
|
||||
<!-- robot model -->
|
||||
<include file="$(find ur_description)/launch/ur3_upload.launch">
|
||||
<arg name="limited" value="$(arg limited)"/>
|
||||
@@ -31,6 +32,7 @@
|
||||
<param name="prefix" value="$(arg prefix)" />
|
||||
<param name="base_frame" type="str" value="$(arg base_frame)"/>
|
||||
<param name="tool_frame" type="str" value="$(arg tool_frame)"/>
|
||||
<param name="shutdown_on_disconnect" type="bool" value="$(arg shutdown_on_disconnect)"/>
|
||||
</node>
|
||||
|
||||
<!-- Load controller settings -->
|
||||
|
||||
Reference in New Issue
Block a user