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

Betegustaf
Participant
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
rospy.init_node(‘niryo_one_example_python_api’)

n = NiryoOne()

n.set_arm_max_velocity(100)
n.move_pose(0.2,0,0.15,0,0,0)

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)