Skip to content
Snippets Groups Projects
Commit f4fcf4fc authored by Vladislav Vlasuk's avatar Vladislav Vlasuk
Browse files

requirements.txt

parent 7fc6daa2
Branches
No related tags found
No related merge requests found
# LeapControlNode # LeapControlNode
ROS Node with basic functions for Leap Controller ROS Node with basic functions for Leap Controller
This node depends on websocket.
To install dependencies run pip3 install -r requirements.txt
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
#!/usr/bin/env python
import asyncio
import websockets
async def hello(websocket, path):
name = await websocket.recv()
print("< {}".format(name))
greeting = "Hello {}!".format(name)
await websocket.send(greeting)
print("> {}".format(greeting))
start_server = websockets.serve(hello, 'localhost', 8765)
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()
File mode changed from 100644 to 100755
# install websocket
# to install dependencies run in terminal:
# pip3 install -r requirements.txt
websocket==0.2.1
websocket-client==0.53.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment