Forums General General Chat Problems for controlling the arm by python Reply To: Problems for controlling the arm by python

Post count: 16

Seems good to me, it was the “added all relevant files into the package of the project” that triggered me to my reply.
I got another idea try with a simple programm like:

#!/usr/bin/env python
from niryo_one_python_api.niryo_one_api import *
import rospy
import time

n = NiryoOne()


And be sure that the #!/usr/bin/env python is here by reopenning your file, this is really important as it locates your python environment, I had issues with this line wich wasnt considered when you copy/paste your script.
Just a tip: you can use winSCP this software alows you to explore files like the windows explorer wich is more convenient than with linux commands (but still you’ll have to check for the environment line when you will copy a file)