Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
thk_LeapControlNode
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
thk_libs
ROS_1
thk_LeapControlNode
Commits
7fc6daa2
Commit
7fc6daa2
authored
3 years ago
by
Hannes Tiltmann
Browse files
Options
Downloads
Patches
Plain Diff
rebuild architecture
parent
67548ad4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
leap_py3/README.md
+11
-0
11 additions, 0 deletions
leap_py3/README.md
leap_py3/e_logging.py
+2
-1
2 additions, 1 deletion
leap_py3/e_logging.py
leap_py3/e_rosbridge.py
+10
-0
10 additions, 0 deletions
leap_py3/e_rosbridge.py
leap_py3/leap.py
+0
-1
0 additions, 1 deletion
leap_py3/leap.py
with
23 additions
and
2 deletions
leap_py3/README.md
0 → 100644
+
11
−
0
View file @
7fc6daa2
# Leap Motion API using LeapSDK (leapd) through websocket
## Requirements
-
64bit AMD processor
-
LeapSDK
-
Python3 and packages:
-
websocker-client
## Examples
Python scripts start with
`'e_'`
are executable examples.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
custom_py3/example
.py
→
leap_py3/e_logging
.py
+
2
−
1
View file @
7fc6daa2
...
...
@@ -3,4 +3,5 @@ from leap import LeapController
l
=
LeapController
(
"
127.0.0.1
"
,
logging
=
True
)
l
.
run
()
# some time to read logging
input
()
This diff is collapsed.
Click to expand it.
leap_py3/e_rosbridge.py
0 → 100644
+
10
−
0
View file @
7fc6daa2
from
leap
import
LeapController
import
roslibpy
h
=
"
127.0.0.1
"
p
=
"
9090
"
client
=
roslibpy
.
Ros
(
host
=
h
,
port
=
p
)
client
.
run
()
roslibpy
.
Topic
(
client
,
'
/leap
'
,
''
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
custom
_py3/leap.py
→
leap
_py3/leap.py
+
0
−
1
View file @
7fc6daa2
...
...
@@ -20,7 +20,6 @@ class LeapController:
self
.
frame
=
json
.
loads
(
m
)
if
self
.
logging
:
print
(
"
wow, new frame
"
)
for
h
in
self
.
frame
[
"
hands
"
]:
print
(
json
.
dumps
(
h
[
"
t
"
],
indent
=
3
))
...
...
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