RoboDK Forum
MoveL_Test does not catch a collision- Printable Version

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: MoveL_Test does not catch a collision (/Thread-MoveL-Test-does-not-catch-a-collision)



MoveL_Test does not catch a collision-Meryem-05-03-2021

Hi,

I tried collision detection with "MoveL_Test" using python API. But it misses an obvious collision.
Maybe MoveJ_test would work for this but it must be a MoveL

Iproperly define my collision map, So i can see the collision in RoboDk simulation.

Could you please verify if this is a bug or I am missing something here?

Let me know if you need something to test it.


RE: MoveL_Test does not catch a collision-Jeremy-05-03-2021

Can you provide a station and the code causing the error?

Jeremy


RE: MoveL_Test does not catch a collision-Meryem-05-04-2021

here is the code i am using to detect the collision

Code:
def collision (cible1,cible2,master_tool,resultat):

CHECK_COLLISIONS = False

RL.setCollisionActive(COLLISION_ON if CHECK_COLLISIONS else COLLISION_OFF)
tool_pose = master_tool.PoseTool()
XYZABC = Pose_2_KUKA(tool_pose)
x,y,z,a,b,c = XYZABC
rotation_sans_coll = []

for el in resultat :
new_tool_pose = KUKA_2_Pose([el[0],el[1],el[2],el[3],el[4],el[5]])
master_tool.setPoseTool(new_tool_pose)
new_tool_pose = master_tool.PoseTool()
robot.setTool(master_tool)
robot.MoveJ(cible2)
robot_joints =机器人。加入ts()

can_move_linear = True
issues = robot.MoveL_Test(robot_joints, cible1)
can_move_linear = (issues == 0)

if can_move_linear:

joints_robot = robot.Joints()

robot.MoveL(cible1)

robot.MoveL(cible2)



RE: MoveL_Test does not catch a collision-Albert-05-04-2021

This code is not enough for us to reproduce this issue with collision detection.

You probably need to customize tolerances for collision checking here:
  1. Tools-Options
  2. Select the Motion tab
  3. Reduce the Maximum path step in mm and deg. Maybe to 1 mm and 1 deg. These settings are Under Collision checking



RE: MoveL_Test does not catch a collision-Meryem-05-05-2021

Hi

Thank you so much it's working right now

I reduce the Maximum path step in mm and deg to 1mm and 1deg


RE: MoveL_Test does not catch a collision-Meryem-05-05-2021

Hi

I change the option in my station and now the program catch the collision

but while doing the collision test, all robot's Joints are set to 0, this wasn't happening before with the other configuration