-
Notifications
You must be signed in to change notification settings - Fork 161
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
Python 3 support #53
Comments
Hello ! You can control the Niryo robot through the PyNiryo API which is compatible with both Python 2.7 and Python 3.x. : https://docs.niryo.com/dev/pyniryo/v1.0.4/en/index.html
Full compatibility with Python 3 requires a transition from ROS Kinetic to ROS Noetic. |
Hello there, I am a bit confused. Currently I am still using the NiryoOne library running on the robot. Since my computer is already running multiple programs in parallel, I would like to be able to have my scripts on the robot itself. The library you provided shows me how to control the robot remotely. Since I am not doing that, I need to use this ROS wrapper which is only compatible with python 2 (for which support has dropped in january 2020). I think the only thing that prevents this library from being compatible with python 3 are Exception block are two lines: If those two lines would be changed to match the syntax of the third exception in line 291:
Then the entire api would be python 3 compatible. However, I don't know whether this could then be actually run on a Niryo One robot. Is there a way to resolve this issue? |
Does this change really work? Have you tried it? In reality the version of python used in the robot is dependent on the ROS version and Ubuntu.Currently the robot is running Ubuntu 16, so ROS Kinetic. ROS Kinetic works with Python2 only. In reality when you use the ROS API of the robot, you use rospy, so python 2. The way to get around this is probably to program via the PyNiryo API with the local ip 127.0.0.1. And send this code to the robot. |
I have tried in the simulation and it does not work there. I won't be investigating on the robot myself any further as I may break something by accident. The new API is solely designed for the NED and is useless on the NiryoOne. Why have there been no efforts to upgrade the ROS and python version? (Except maybe this community pull request from half a year ago: #54) It has been two years since the support for python2 has been dropped! This should have already happened more than 2 years ago. |
In fact the NiryoOne product is no longer on the market, so no transition to a newer system will be made. The production of the NED will also be stopped in favour of the NED2 which will be available on newer systems. A final update will be done in mid January to restore pyniryo compatibility with the Niryo One |
Ok so I will be able to use the pynyrio package for the NiryoOne, but I would still have to use a python2 interpreter. Did I understand this correctly? |
Pyniryo is compatible with both Python 3 and 2 : |
Thank you, I will definetly try it out |
Hello, is there a way to use this API with python 3 as the support for python 2.7 was dropped earlier this year. If not are there any plans to upgrade this repository to be compatible with python 3?
The text was updated successfully, but these errors were encountered: