Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I Use it? like how can i add it into python #6

Open
naruto4360 opened this issue Dec 25, 2015 · 6 comments
Open

How do I Use it? like how can i add it into python #6

naruto4360 opened this issue Dec 25, 2015 · 6 comments

Comments

@naruto4360
Copy link

Ok so how do i install it or be able to run it? please help. Thanks! and Merry Christmas!

@davinellulinvega
Copy link
Contributor

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.

@naruto4360
Copy link
Author

thanks

@Samrath4271
Copy link

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

@dinomite59
Copy link

Same

@dinomite59
Copy link

i am on windows

@darin-costello
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants