Hello Flexsim Users,
This problem was here presented already. I used all advices but model does still not work - Taskexecutor can not find control points
I used the function_s in different places , but it did not solve the problem - sometimes it changed my topology
Thank you for advice
Piotr
treenode path1 = createinstance(node("/AGV/StraightPath",library()),model()); treenode path2 = createinstance(node("/AGV/StraightPath",library()),model()); treenode cpA = createinstance(node("/AGV/ControlPoint",library()),model()); treenode cpB = createinstance(node("/AGV/ControlPoint",library()),model()); treenode cpC = createinstance(node("/AGV/ControlPoint",library()),model()); Object o1=path1; //casting to get rotation method Object o2=path2; Object ocpA=cpA; Object ocpB=cpB; Object ocpC=cpC; // sciezki: ocpA.location=Vec3(0,0,0); ocpA.location=Vec3(0,0,0); ///CP o1.location=Vec3(0,0,0); o1.size=5; function_s(path1, "finalizeSpatialChanges"); ocpB.location=Vec3(5,0,0); o2.location=Vec3(5,0,0); o2.size=3; o2.rotation=90; ocpC.location=Vec3(5,3,0); //function_s(path2, "finalizeSpatialChanges");
//*********************************************************
// Vehicle code: Object current = ownerobject(c); /**Custom Code*/ current.location = Vec3(-6,-6,1); TaskSequence ts = TaskSequence.create(current); treenode destC=Model.find("cpC"); treenode destB=Model.find("cpB"); print("dest=",destB); ts.addTask(TASKTYPE_TRAVEL, destB); ts.addTask(TASKTYPE_TRAVEL, destC); //ts.dispatch(); print(c);