mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
* 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.
33 lines
1.0 KiB
XML
33 lines
1.0 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
Universal robot ur3 launch. Loads ur3 robot description (see ur_common.launch
|
|
for more info)
|
|
|
|
Usage:
|
|
ur3_bringup.launch robot_ip:=<value>
|
|
-->
|
|
<launch>
|
|
|
|
<!-- robot_ip: IP-address of the robot's socket-messaging server -->
|
|
<arg name="robot_ip"/>
|
|
<arg name="limited" default="false"/>
|
|
<arg name="min_payload" default="0.0"/>
|
|
<arg name="max_payload" default="3.0"/>
|
|
<arg name="prefix" default="" />
|
|
<arg name="shutdown_on_disconnect" default="true" />
|
|
<!-- robot model -->
|
|
<include file="$(find ur_description)/launch/ur3_upload.launch">
|
|
<arg name="limited" value="$(arg limited)"/>
|
|
</include>
|
|
|
|
<!-- ur common -->
|
|
<include file="$(find ur_modern_driver)/launch/ur_common.launch">
|
|
<arg name="robot_ip" value="$(arg robot_ip)"/>
|
|
<arg name="min_payload" value="$(arg min_payload)"/>
|
|
<arg name="max_payload" value="$(arg max_payload)"/>
|
|
<arg name="prefix" value="$(arg prefix)" />
|
|
<arg name="shutdown_on_disconnect" value="$(arg shutdown_on_disconnect)"/>
|
|
</include>
|
|
|
|
</launch>
|