Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Some issues as newbie with roboDK and Niryo One

#4
Hi Albert,

thank you for your help. I found the text editor option and set it to the correct path. This works. I have found a generated file inside my tmp folder (see attached file PostPunkt.py) Unfortunately I get another error. (see attached file error_2.png)

A working example for me ist the following snippet. I could run the script on the raspberry inside the robot. The python api and also the ROS-Stack is on github:

https://github。com/NiryoRobotics/niryo_one_ros.git

Thak you in advance,
Thomas

Code:
#!/usr/bin/env python

from niryo_one_python_api.niryo_one_api import *
import rospy
rospy.init_node('niryo_one_run_python_api_code')

n = NiryoOne()

n.move_joints([0, -0.321, -0.163, 0.029, 0.464, -0.015])
n.move_joints([0.515, -0.836, -0.659, 0.501, 1.493, -0.035])
n.move_joints([-1.179, -0.328, 0.507, -1.805, 1.218, -1.463])
n.move_joints([-1.179, 0.064, -0.6960000000000001, 2.2640000000000002, 1.473, 1.832])
n.move_joints([1.836, -0.502, 0.97, -2.275, -1.227, -1.478])
n.move_joints([0, 0, 0, 0, 0, 0])
n.move_joints([0, 0, 0, 2.209, 0.005, -2.222])
n.move_joints([0, 0, -1.345, -0.009000000000000001, 0.009000000000000001, -0.005])


Attached Files Thumbnail(s)


.py PostPunkt.py(Size: 2.14 KB / Downloads: 261)


Messages In This Thread
RE: Some issues as newbie with roboDK and Niryo One - bythomas- 01-20-2021, 11:10 AM



Users browsing this thread:
1 Guest(s)