robo-wunderkind / robopython Goto Github PK
View Code? Open in Web Editor NEWRobo Wunderkind Python API
License: Other
Robo Wunderkind Python API
License: Other
Please add a general description / About in the README and/or docs indicating what robopython actually is? Is it a new programming language? Is it python bindings to some robotics library? Which one and what robots/platforms are supported etc etc.
Thanks.
The code i am trying to execute is:
from robopython import Robo
BLE_Name = "tom"
Robo = Robo(BLE_Name)
print Robo.battery_level()
but i does not print the battery level.
Instead i get this errror:
Running on Linux, please ensure your BLED112 dongle is plugged in
Connected to RW_tom!
Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/robopython/pygatt/backends/bgapi/bgapi.py", line 600, in _receive
bytearray(args['value']))
File "/home/pi/.local/lib/python2.7/site-packages/robopython/pygatt/device.py", line 226, in receive_notification
callback(handle, value)
File "/home/pi/.local/lib/python2.7/site-packages/robopython/robopython.py", line 207, in handle_rx_data
self.update_build(read_data)
File "/home/pi/.local/lib/python2.7/site-packages/robopython/robopython.py", line 246, in update_build
name = self.build_map[idx][idy].name
AttributeError: 'NoneType' object has no attribute 'name'
From what i understand:
Connected to RW_tom!
(in that moment it also plays a sound)Robo
may you give me some guidance how to proceed?
Can you give me a hint what the problem might be?
OS Info:
Python Version:
Kernel Info:
Travis-CI does not find this link: https://travis-ci.org/JonRobo/robopython
Hi,
yesterday I was able to connect withe the USB dongle to the Robo and I was able to run all of your provided demo scripts.
Todaynothing is working anymore...
For example if I want to run this:
from robopython import Robo
BLE_Name = "ROBO"
Robo = Robo(BLE_Name)
print Robo.battery_level()
I receive the following:
PS C:\Users\Patrick> & C:/Python27/python.exe c:/Users/Patrick/Documents/robo_test1.py
Running on Windows, please ensure your BLED112 dongle is plugged in
Traceback (most recent call last):
File "c:/Users/Patrick/Documents/robo_test1.py", line 4, in
Robo = Robo(BLE_Name)
File "C:\Python27\lib\site-packages\robopython\robopython.py", line 44, in init
self.BLE = BLED112(self.name, com_port)
File "C:\Python27\lib\site-packages\robopython\ble_robo.py", line 28, in init
self.connect_ble()
File "C:\Python27\lib\site-packages\robopython\ble_robo.py", line 110, in connect_ble
self.scan()
File "C:\Python27\lib\site-packages\robopython\ble_robo.py", line 84, in scan
devices = self.adapter.scan()
File "C:\Python27\lib\site-packages\robopython\pygatt\backends\bgapi\bgapi.py", line 328, in scan
self.expect(ResponsePacketType.gap_end_procedure)
File "C:\Python27\lib\site-packages\robopython\pygatt\backends\bgapi\bgapi.py", line 534, in expect
return self.expect_any([expected], *args, **kargs)
File "C:\Python27\lib\site-packages\robopython\pygatt\backends\bgapi\bgapi.py", line 582, in expect_any
self._packet_handlerspacket_type
File "C:\Python27\lib\site-packages\robopython\pygatt\backends\bgapi\bgapi.py", line 709, in _ble_evt_gap_scan_response
name, data_dict = self._scan_rsp_data(args['data'])
File "C:\Python27\lib\site-packages\robopython\pygatt\backends\bgapi\bgapi.py", line 508, in _scan_rsp_data
constants.scan_response_data_type[field_value[0]])
KeyError: 38
The same happens if I try it on my MacBook (where it was working yesterday)
Do you have a tip for me what could be wrong ?
It would be desireable to delete the docs/_build
folder from this repo as it always gets generated by make.bat
(add a .gitignore
file)
I am sure the process of updating https://robopython.readthedocs.io can be automated when some file under docs
changes.
This would automate the whole documentation publishing process
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.