Selecting AI TYPE for instance Point Goal using remote (PC/desktop) controller aka PYTHON/NPM PACKAGES....
Is it possible to Select an AI type for instance the Point Goal Navigation using the Desktop Controllers aka PYTHON or NPM(I know currently it is not possible)
However, in the block programming codes I can see that one can select AI...
I need to do the same that is give the robot command dynamically and through script running on say Raspberry Pi -> so the pi that runs a script gives the 2D waypoint vector ...rather than the user programming the coded statically...
I can see the firbase code available in the opencode directory...so will appreciate if one of the developement contributors can explain the way forward...
To dynamically control a robot’s navigation using a Raspberry Pi, you can set up a communication system (e.g., ROS, MQTT) where the Pi sends 2D waypoint data to the robot.
Setup Communication:
Use ROS if the robot supports it. The Pi sends waypoint data via a ROS topic, like this in Python:
rospy.init_node('waypoint_publisher') pub = rospy.Publisher('/robot/goal', Pose2D, queue_size=10) goal = Pose2D(x=2.0, y=3.0, theta=0.0) pub.publish(goal)
Alternatively, use MQTT for lightweight messaging between the Pi and the robot.
Dynamic Waypoint Control:
The Raspberry Pi script can compute or receive waypoint updates dynamically (e.g., from sensors or Firebase) and publish them to the robot.
Adjust AI Parameters Dynamically:
If needed, modify AI navigation parameters (e.g., goal thresholds) via the same communication setup, allowing the robot to adapt to new commands in real-time.
If Firebase is part of your setup, you could read waypoint data from it and send it to the robot. Reaching out to the project's developers may provide more guidance on how to integrate this dynamically within their system.
Let me know if you'd like help with any part of this!