MCPcopy Create free account

hub / github.com/Aasthaengg/ROSMASTERx3 / functions

Functions30 in github.com/Aasthaengg/ROSMASTERx3

↓ 22 callersMethodsend_direction
Sends a single 'direction' command (0..1) to the bot, waits 'duration' seconds, then sends STOP. direction mapping in parse
rosmaster_control.py:54
↓ 13 callersFunctiontext_to_speech
Convert text to speech using Deepgram's API and play the audio immediately.
app.py:35
↓ 2 callersMethod_build_btn_control
(car_type_hex, num_dir_hex)
rosmaster_control.py:40
↓ 2 callersMethodconnect
Create a TCP socket and connect to the bot.
rosmaster_control.py:21
↓ 2 callersMethoddance_routine
Example 'dance' routine: forward -> rotate left -> backward -> rotate right -> etc.
rosmaster_control.py:82
↓ 2 callersMethoddisconnect
Close the socket connection.
rosmaster_control.py:27
↓ 1 callersMethod_calc_checksum
(values)
rosmaster_control.py:35
↓ 1 callersMethodcaption
( self, image: Image.Image, length: str = "short" )
moondream.py:17
↓ 1 callersMethodcircle_routine
'Circle' routine: turn the bot in a circle. (If your bot can go forward + slight turn, adapt accordingly.)
rosmaster_control.py:107
↓ 1 callersFunctioncommand_parser
Parses user input (transcribed text) and returns a dictionary of recognized commands.
app.py:84
↓ 1 callersMethoddetect
( self, image: Image.Image, object_type: str )
moondream.py:31
↓ 1 callersMethoddrift_routine
'Drift' routine: maybe short forward then a rotate to simulate drifting
rosmaster_control.py:96
↓ 1 callersFunctionget_video_stream
Fetch video stream from the Flask server.
test.py:9
↓ 1 callersFunctionget_video_stream
Fetch video stream from the Flask server.
app.py:55
↓ 1 callersMethodinference
(self)
whisperstt.py:11
↓ 1 callersFunctionmain
()
app.py:214
↓ 1 callersMethodpoint
( self, image: Image.Image, object_type: str )
moondream.py:38
↓ 1 callersMethodprocess
(self)
speechstream.py:69
↓ 1 callersMethodprocess_frame
Dynamically processes frame based on commands. :param frame: The captured video frame. :param commands: Dictionary of Moondr
moondream.py:46
↓ 1 callersMethodquery
( self, image: Image.Image, question: str )
moondream.py:24
↓ 1 callersMethodsquare_routine
'Square' routine: move forward, turn, do 4 edges
rosmaster_control.py:116
↓ 1 callersMethodtriangle_routine
'Triangle' routine: 3 edges
rosmaster_control.py:126
Method__init__
(self)
moondream.py:7
Method__init__
(self, model_size: str = 'small', english: bool = True, translate: bool = False)
whisperstt.py:4
Method__init__
Initialize the BotController with default IP and port.
rosmaster_control.py:13
Method__init__
( self, assist=None, samplerate: int = 44100, blocksize: int
speechstream.py:11
Methodcallback
(self, indata, frames, t, status)
speechstream.py:40
Functionconversation
Continuously checks for new speech recognition results and updates the global TEXT dictionary with recognized commands.
app.py:189
Methodlisten
(self)
speechstream.py:88
Functionvision
Continuously fetch and update frames.
app.py:157