question

立洲 avatar image
0 Likes"
立洲 asked Jason Lightfoot edited

How to collect the current position of the robot arm X, Y, Z axis

我收集機械臂每次改變運動的XYZ軸坐標並需要寫入表格(位置表)

我應該如何獲得這些信息,希望你能幫我修改這個模型並得到一個可以解決問題的答案,謝謝。

Collect robot arm axis coordinates.fsm

Translation: "I collect the XYZ axis coordinates of each movement of the robotic arm and need to write to a table (position table) How should I get this information, I hope you can help me modify this model and get an answer that can solve the problem, thanks."

FlexSim 20.0.10
globaltablerobot armaxis
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered 立洲 commented

It sounds like you want to use getLocation, rotation and project which will allow you to easily find all required x,y,z relative to your desired coordinate space. Assign them to a Vec3, say, armLoc1, and then access them using armLoc1.x, armLoc1.y, armLoc1.z.

You may need to run updatelocations on the objects before you access them.

· 7
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.