Updating Actor state from a network connection?

I’m very new to Panda3D, and I am trying to write a real-time visualizer for a robot arm where the movement commands come in over a UDP network connection. So, this isn’t really a game, but I’d just like to be able to show the arm rotating and moving in response to state updates over the UDP connection.

The model for the arm is just two cylinders, the base has azimuth/elevation control and the “elbow” has one degree of freedom. I guess ordinarily I’d bind some keys to rotate the base or elevate the bottom joint … but I’m looking for some way to listen to text commands over UDP such as “base:azimuth 130; base:elevation 90”


I think this code is close to the desired effect.


Well - that is certainly close to what I need! Thanks!
I’d mark this as an answer … but there doesn’t seem to be a way to do that?

The ability to put a flag depends as an answer on the category of the forum. This is possible in the problems with scripting ssues.

You can also change the category, if I remember correctly, about the possibilities of the author of the topic.