-
Notifications
You must be signed in to change notification settings - Fork 1
Add ur gui #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ur gui #21
Changes from 5 commits
766636c
b1ea4ff
7525567
b3dc9b8
4ff7c47
65d72cd
42b3aec
ed8f1a6
d56ce44
c5e07a4
ed9fe7f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| drt_ur_gui: | ||
| ros__parameters: | ||
| program: "ext_ctrl.urp" | ||
| window.name: "DRT UR Remote Commander: Single Arm Testing Configuration" | ||
| window.stylesheet: | | ||
| QMainWindow { | ||
| background-color: darkgrey; | ||
| color: #000000; | ||
| } | ||
| QPlainTextEdit { | ||
| background-color: lightgrey; | ||
| color: #000000; | ||
| font-size: 8px; | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,133 @@ | ||||||
| #!/usr/bin/env python3 | ||||||
| # | ||||||
| # Copyright (c) 2025, United States Government, as represented by the | ||||||
| # Administrator of the National Aeronautics and Space Administration. | ||||||
| # | ||||||
| # All rights reserved. | ||||||
| # | ||||||
| # This software is licensed under the Apache License, Version 2.0 | ||||||
| # (the "License"); you may not use this file except in compliance with the | ||||||
| # License. You may obtain a copy of the License at | ||||||
| # | ||||||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||||||
| # | ||||||
| # Unless required by applicable law or agreed to in writing, software | ||||||
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||||||
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||||||
| # License for the specific language governing permissions and limitations | ||||||
| # under the License. | ||||||
|
|
||||||
| import os | ||||||
|
|
||||||
| from launch import LaunchDescription | ||||||
| from launch.actions import DeclareLaunchArgument | ||||||
| from launch.substitutions import LaunchConfiguration | ||||||
| from launch_ros.actions import Node | ||||||
| from chonkur_deploy.launch_helpers import include_launch_file | ||||||
| from ament_index_python.packages import get_package_share_directory | ||||||
|
|
||||||
|
|
||||||
| def generate_launch_description(): | ||||||
|
|
||||||
| # Declare arguments | ||||||
| declared_arguments = [] | ||||||
| declared_arguments.append( | ||||||
| DeclareLaunchArgument( | ||||||
| "namespace", | ||||||
| default_value="", | ||||||
| description="Namespace for the robot.", | ||||||
| ) | ||||||
| ) | ||||||
| declared_arguments.append( | ||||||
| DeclareLaunchArgument( | ||||||
| "headless_mode", | ||||||
| default_value="true", | ||||||
| description="Enable headless mode for robot control", | ||||||
| ) | ||||||
| ) | ||||||
| declared_arguments.append( | ||||||
| DeclareLaunchArgument( | ||||||
| "robot_ip", | ||||||
| default_value="192.168.1.102", | ||||||
| description="IP address by which the robot can be reached.", | ||||||
| ) | ||||||
| ) | ||||||
| declared_arguments.append( | ||||||
| DeclareLaunchArgument( | ||||||
| "hande_dev_name", | ||||||
| default_value="/tmp/ttyUR", | ||||||
| description="File descriptor that will be generated for the tool communication device. " | ||||||
| "The user has be be allowed to write to this location. ", | ||||||
| ) | ||||||
| ) | ||||||
| declared_arguments.append( | ||||||
| DeclareLaunchArgument( | ||||||
| "tool_tcp_port", | ||||||
| default_value="54321", | ||||||
| description="Remote port that will be used for bridging the tool's serial device. " | ||||||
| "Only effective, if use_tool_communication is set to True.", | ||||||
|
||||||
| ) | ||||||
| ) | ||||||
|
|
||||||
| # Initialize Arguments | ||||||
| namespace = LaunchConfiguration("namespace") | ||||||
| headless_mode = LaunchConfiguration("headless_mode") | ||||||
| robot_ip = LaunchConfiguration("robot_ip") | ||||||
| hande_dev_name = LaunchConfiguration("hande_dev_name") | ||||||
| tool_tcp_port = LaunchConfiguration("tool_tcp_port") | ||||||
|
|
||||||
| robot_state_helper_node = Node( | ||||||
| package="ur_robot_driver", | ||||||
| executable="robot_state_helper", | ||||||
| name="ur_robot_state_helper", | ||||||
| output="screen", | ||||||
|
||||||
| output="screen", | |
| output="both", |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I know nothing about hardware, do we interact with the script interface from the GUI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be run on controls or console?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think running hande tool comm would benefit from being on controls but everything else should run on console. I'm going to separate those too out in the launch file and readme then merge this today