Hi together! I’m working on a robotic control system and need help with script communication between three components.
Current Setup:
fabrik_controller.py(attached to “FABRIK_System”) - Calculates motor positionsmaster_robot_controller.py(attached to “World”) - Should act as intermediarydelta_controller.py(attached to “Unit_001”) - Should receive and apply positions
What Works:
- FABRIK controller successfully calculates motor positions
- Delta controller can receive and apply test positions directly
- All scripts initialize and run without errors
The Issue:
I can’t get the data to flow properly between these scripts. Specifically:
- Master controller can’t reliably get data from FABRIK controller
- Delta controller isn’t receiving the forwarded positions
What I’ve Tried:
In Master Controller:
motor_positions = self.fabrik_controller.get_current_motor_positions()
controller.set_position(axis, value) # Sending to Delta
Question:
- What’s the correct way to share data between multiple BehaviorScripts in Omniverse?
- Would a simpler example showing how to pass data between 3 scripts help understand the proper pattern? A working example would be great.
Attached Files:
delta_controller.txt (5.9 KB)
Directorys.txt (479 Bytes)
fabrik_controller.txt (11.9 KB)
master_robot_controller.txt (7.7 KB)
Output.txt (2.4 KB)
Any guidance on the proper way to handle cross-script communication in Omniverse would be greatly appreciated!
regards,
YuuZena