sphero_ros
sphero_ros copied to clipboard
How do I Use it? like how can i add it into python
Ok so how do i install it or be able to run it? please help. Thanks! and Merry Christmas!
Hello, There is in fact two ways to achieve this. You can use the whole project as a node inside ROS and write a python client that subscribes and publishes to the right topics. Or if you're only interested in interfacing your python script with your sphero, you can go into the sphero_driver folder (where the setup.py is) and enter on the command line: sudo python setup.py install. This will install the package at your default location and you can use the driver in any of your python scripts by simply importing the sphero_driver module. Have fun.
thanks
I am trying to enter the command in terminal (I am on a mac), and it says there is an error on line 4 which says, from catkin_pkg.python_setup import generate_distutils_setup. the file catkin pkg setup is not in the directory. Please get back as soon as possible
Same
i am on windows
I've written a stand alone version https://github.com/darin-costello/spheropy , Its not tested on windows, but it should work as it don't use any system dependent libraries. it has all the features as this package plus some, but it is still a work in progress.