Hi,
I successfully connected my RaspberryPi to my Thymio II.
Now I can control the Thymio with a simple Python script.
On the RaspberryPi I just run the following command to start asebamedulla.
Terminal 1:
asebamedulla "ser:device=/dev/ttyACM0"
Then I run my Python script.
Terminal 2:
python test.py
However, now I want to do this from my Mac with ssh.
When I do the same thing I get the following error:
pi@raspberrypi:~/Desktop $ python test.py
Traceback (most recent call last):
File "test.py", line 48, in <module>
network = dbus.Interface(bus.get_object('ch.epfl.mobots.Aseba', '/'), dbus_interface='ch.epfl.mobots.AsebaNetwork')
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name ch.epfl.mobots.Aseba was not provided by any .service files
Does someone knows why and how I can fix this?
Thank you. :)
Edit:
Im using this code as an example:
https://www.thymio.org/en:thymioraspyexample