Anyone have any advice testing to see if a point is reachable? I want to test to see if a point is reachable before attempting to run to it.
The kicker is that this is on a line tracking cell. The INRANGE function seems to not work on this type of robot, and after discussing with Kawi tech support, it only checks if the passed in point is within joint bounds, and not if it is reachable or not. It was returning a 64 everytime, but once I opened up the bounds on J7 (the conv tracking axis), it just returned 0 for every point tested, even for points obviously unreachable.
My next attempt was to attempt to convert a pose to joint, and use the error catch of ONE if the conversion failed. Either I didn't setup right, as the controller faults the moment I attempt the conversion. The ONE program is never entered/called.
.PROGRAM reachable()
ONE reachable_err
retry:
reachable = TRUE
POINT #jtest_point = test_point
IF NOT reachable GOTO retry
PRINT 4: "Point reachable"
.END
.PROGRAM reachable_err()
PRINT 4: "In Reachable_err"
PRINT 4: "Point not reachable"
reachable = FALSE
RETURNE
.END
Display More
My next idea is to write an IK solver in AS, but I would prefer not to do that.