From 43ac0c81d0ff227ccb2cf377320b93b85ba701a7 Mon Sep 17 00:00:00 2001 From: Eden Attenborough Date: Thu, 30 May 2024 16:48:16 +0000 Subject: Update README.md --- README.md | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 333a7ac..2de1e71 100644 --- a/README.md +++ b/README.md @@ -7,29 +7,20 @@ If being run in a VM, set the whisper API url ROS parameter: `rosparam set /stt/whisper_api_url 192.168.122.1:9000` -If debugging, you might need to manually make the node transcribe: +If being run on a separate PC to the host, you may need to set these parameters: -`rostopic pub /stt/listening ollamamessages/WhisperListening "listening: True" -1` +`export ROS_MASTER_URI=http://10.68.0.1:11311` -Given a python library `capabilities` containing only functions, it inspects this library to generate an initial prompt to tell the -LLM the possible functions. Then, with a ROS service call, these functions are called: +`export ROS_IP=10.68.0.130` -`rosrun ollamawrapper ollamawrapper` +Obviously you should update the IP addresses with the appropirate ones as applicable. -`rosservice call /ollama_wrapper "input: What the weather like in Seattle right now? What's 14 plus 217? What's 0 + 1?"` +If debugging, you might need to manually make the node transcribe: -Response: +`rostopic pub /stt/listening ollamamessages/WhisperListening "listening: True" -1` -``` -Recieved ollama request 'What the weather like in Seattle right now? What's 14 plus 217? What's 0 + 1?' -get_weather_data(coordinates=get_coordinates_from_city(city_name='Seattle')): -By 'Seattle' I am assuming you mean 'Seattle, WA' -The current temperature is 0.100000°C with an outlook of 'Clear sky' -add(num1=14, num2=217): -14.000000 + 217.000000 = 231.000000 -add(num1=0, num2=1): -0.000000 + 1.000000 = 1.000000 -``` +There is a bash script provided to start the whisper node, make sure you have compiled, sourced, +and are in the correct directory first. ## TODOs -- cgit v1.2.3