FAIR-INNOVATION / frcobot_python_sdk

The Python SDK for FR series cobots with Windows and Linux OS.
4 stars 1 forks source link

Move cartesian command not working for custom tool coordinate system #2

Closed bharathrajad closed 4 months ago

bharathrajad commented 4 months ago

After changing tool coordinates, i renamed "toolcoord3" to "wenglor" sensor name. when using the python sdk and sending command to move to specifc point , i am getting "Joint command point error".

# Test input : 'new_position': [-163.0, 362.6, 776.0, -100.0, 0.0, 0.0], 
#'tool': 3, 'user': 0, 'velocity': 30,   
ret = robot.MoveCart(new_position, tool, user, vel=vel)

When the default toolcoord0 is used, I am not getting any error message for the given point. And also in GUI it is working good for custom tool coordinate, but from python SDK it is not working. attaching screenshots.

Screenshot from 2024-06-11 16-41-32

bharathrajad commented 4 months ago

Setting tool coordintes through python sdk solved it. thanks for the support team.

from fairino import Robot
import time
# A connection is established with the robot controller. A successful connection returns a robot object
robot = Robot.RPC('192.168.58.2')

t_coord = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
error = robot.SetToolCoord(6, t_coord, 0, 0)
print("Set Tool Coordinate System", error)