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

MoveL_test input issue in .Net application

#1
Hi all,

I'm trying to use the MoveL_Test function in a .Net application with the RoboDK API. I'm having trouble with an unexpected error.
The function (FunctionNetApplication.png) requires the joints of the two poses, when I use the joints of the second pose for j2 it returns the following error (error.png) which leads back to the MoveL_Test function.

Other references (like here *) suggest that the pose (Mat) should be used as the input of the end target.
Is it a mistake from my side? or is this a bug present in the .Net application?


(*//www.sinclairbody.com/doc/en/CppAPI/class_r...e983eaa692)

Kind regards,
Jan


Attached Files Thumbnail(s)

Image(s)

#2
I'm pretty sure the MoveL_Test requires the pose as a mat and not J2, it looks like a copy-paste from the MoveJ_Test issue.

Jeremy
Find useful information about RoboDK and its features by visiting our2022世界杯32强赛程表时间 and by watching tutorials on ourYoutube Channel.


#3
We just pushed an update on GitHub to fix this issue (MoveL_Test on the C# NuGet API).

MoveL_Test takes a pose as the second parameter.

This is the correct function:
Code:
public int MoveL_Test(double[] j1, Mat t2, double minstepDeg = -1)
{
链接。check_connection();
var command = "CollisionMoveL";
链接。send_line(command);
链接。send_item(this);
链接。send_array(j1);
链接。send_pose(t2);
链接。send_int((int) (minstepDeg * 1000.0));
链接。ReceiveTimeout = 3600 * 1000;
var collision = Link.rec_int();
链接。ReceiveTimeout =链接。DefaultSocketTimeoutMilliseconds;
链接。check_status();
return collision;
}




Users browsing this thread:
1 Guest(s)