Skip to content

Commit

Permalink
Fix tool voltage setup (UniversalRobots#526)
Browse files Browse the repository at this point in the history
* Move BEGIN_REPLACE inside of header

* Change default value of tool_voltage

Keeping this at 0 requires users to explicitly set it to non-zero. This way
we won't accitentally destroy hardware that cannot handle 24V.
  • Loading branch information
fmauch authored Nov 2, 2022
1 parent a76041d commit ebb9e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ur_robot_driver/launch/ur_control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def generate_launch_description():
declared_arguments.append(
DeclareLaunchArgument(
"tool_voltage",
default_value="24",
default_value="0", # 0 being a conservative value that won't destroy anything
description="Tool voltage that will be setup.",
)
)
Expand Down
4 changes: 2 additions & 2 deletions ur_robot_driver/resources/ros_control.urscript
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{BEGIN_REPLACE}}

# HEADER_BEGIN

{{BEGIN_REPLACE}}

steptime = get_steptime()

textmsg("ExternalControl: steptime=", steptime)
Expand Down

0 comments on commit ebb9e57

Please sign in to comment.