Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arm Teleop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CREATE Lab
Robot hand
ADAPT Hand
ros_ws
Arm Teleop
Commits
7a11fa11
Commit
7a11fa11
authored
8 months ago
by
Kai Junge
Browse files
Options
Downloads
Patches
Plain Diff
Removed gamepad recording stuff from previous commit for cleaning up.
parent
eb0a4db4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arm_teleop/avp_teleop_node.py
+0
-29
0 additions, 29 deletions
arm_teleop/avp_teleop_node.py
with
0 additions
and
29 deletions
arm_teleop/avp_teleop_node.py
+
0
−
29
View file @
7a11fa11
...
...
@@ -44,7 +44,6 @@ class AVPTeleopNode(Node):
# Publisher
self
.
franka_pose_publisher
=
self
.
create_publisher
(
Float64MultiArray
,
'
/franka/pose_demand
'
,
10
)
self
.
wrist_servo_demand_publisher
=
self
.
create_publisher
(
Float64MultiArray
,
'
/wrist/servo_demand
'
,
10
)
self
.
exp_status_publisher
=
self
.
create_publisher
(
String
,
'
/exp_status
'
,
10
)
# Gamepad
self
.
gp
=
GamepadFunctions
()
...
...
@@ -278,34 +277,6 @@ class AVPTeleopNode(Node):
msg
.
data
=
franka_demand
self
.
franka_pose_publisher
.
publish
(
msg
)
def
timer_callback
(
self
):
if
self
.
gp
.
button_data
[
"
left
"
]
==
1
and
(
self
.
teleop_timer
is
None
):
self
.
teleop_timer
=
time
.
time
()
msg
=
String
();
msg
.
data
=
"
Timer start
"
self
.
exp_status_publisher
.
publish
(
msg
)
if
self
.
gp
.
button_data
[
"
left
"
]
==
0
and
(
self
.
teleop_timer
is
not
None
):
if
self
.
teleop_timer
>
1
:
print
(
round
(
time
.
time
()
-
self
.
teleop_timer
,
3
))
self
.
teleop_timer
=
None
msg
=
String
();
msg
.
data
=
"
Timer end
"
self
.
exp_status_publisher
.
publish
(
msg
)
if
self
.
gp
.
button_data
[
"
circle
"
]
==
1
:
print
(
"
Success!
"
)
msg
=
String
();
msg
.
data
=
"
Success
"
self
.
exp_status_publisher
.
publish
(
msg
)
if
self
.
gp
.
button_data
[
"
cross
"
]
==
1
:
print
(
"
Fail!
"
)
msg
=
String
();
msg
.
data
=
"
Fail
"
self
.
exp_status_publisher
.
publish
(
msg
)
if
self
.
gp
.
button_data
[
"
square
"
]
==
1
:
print
(
"
Disgard!
"
)
msg
=
String
();
msg
.
data
=
"
Disgard
"
self
.
exp_status_publisher
.
publish
(
msg
)
def
main
():
rclpy
.
init
()
node
=
AVPTeleopNode
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment