hello there I’m getting Runtime error: Unknown / unexpected error in the program: “popXMLRPCInstance” please help
my code is:
pose_hom = p[0.326,0.314,0.150,0.091,-0.051,-3.869]
pose_1 = p[0.455,0.3245,0.150,0.091,-0.051,-3.869]
pose_2 = p[0.454,0.3713,0.150,0.091,-0.051,-3.869]
i=0
j=0
waypoints = [pose_1,pose_2]
while i< waypoints.length():
new_way = position_add(waypoints[i],Delta)
waypoints[i] = new_way
i = i+1
end
i=0
while j<=8:
while i< waypoints.length():
movel(waypoints[i])
end
end
Which Runtime error are you getting exactly?
Which Polyscope version are you using?
So far some things I see in your code:
You are not setting any speed, nor acceleration for your move commands. This is not mandatory, but setting low values might help.
The array of poses waypoints = [pose_1,pose_2] and then the assignment movel(waypoints[i]) can be problematic depending on which Polyscope version you are in.
Does 5.12.4.1101661 (Aug 31 2022) have the movel(waypoint[i]) assignment problems? Just came across and thinking about upgrading polyscope to the latest, or at least 5-21.3
It’s not the movel(waypoint[i]) that was in question. It was the assignment of an array of poses that was. Lists and arrarys got a pretty major overhaul in later polyscope versions with the ability to construct fixed length lists as well as structs. I would advise updating.
I actually didn’t have an array of poses. I had an array of strings equivalent to each pose variables. and did a while loop of var = vars[i]. Which still caused the popXMLRPCInstance issue on 5.12.
Just upgraded to 5.21 and working perfectly fine now. Yes - upgrade polyscope to at least 5.21.