From 4b4f0f5dc60cb7f7a007a3ddb4ce29ae65afe6eb Mon Sep 17 00:00:00 2001 From: Rinno1478 Date: Wed, 30 Oct 2024 18:52:07 +0900 Subject: [PATCH] add catkin_virtualenv for google-generativeai --- jsk_2024_10_semi/CMakeLists.txt | 16 +++++++++++++++- jsk_2024_10_semi/package.xml | 3 +++ jsk_2024_10_semi/requirements.txt | 13 +++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 jsk_2024_10_semi/requirements.txt diff --git a/jsk_2024_10_semi/CMakeLists.txt b/jsk_2024_10_semi/CMakeLists.txt index fdd8e3d67..3c033f7f0 100644 --- a/jsk_2024_10_semi/CMakeLists.txt +++ b/jsk_2024_10_semi/CMakeLists.txt @@ -1,11 +1,25 @@ cmake_minimum_required(VERSION 2.8.3) project(jsk_2024_10_semi) -find_package(catkin REQUIRED COMPONENTS) +find_package(catkin REQUIRED COMPONENTS catkin_virtualenv) catkin_package() +# Generate the virtualenv +catkin_generate_virtualenv( + PYTHON_INTERPRETER python3.10 + USE_SYSTEM_PACKAGES FALSE # Default TRUE + + # Provide extra arguments to the underlying pip invocation + #EXTRA_PIP_ARGS -vvv + ) + install(DIRECTORY euslisp DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} ) +install(FILES requirements.txt + DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}) +catkin_install_python( + PROGRAMS scripts/conversation.py + DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}) diff --git a/jsk_2024_10_semi/package.xml b/jsk_2024_10_semi/package.xml index ff815d0b4..4fa478aaa 100644 --- a/jsk_2024_10_semi/package.xml +++ b/jsk_2024_10_semi/package.xml @@ -10,10 +10,13 @@ catkin + catkin_virtualenv + fetcheus jsk_maps pr2eus + requirements.txt diff --git a/jsk_2024_10_semi/requirements.txt b/jsk_2024_10_semi/requirements.txt new file mode 100644 index 000000000..1fecb40ea --- /dev/null +++ b/jsk_2024_10_semi/requirements.txt @@ -0,0 +1,13 @@ +google-ai-generativelanguage==0.6.10 +google-api-core==2.22.0 +google-api-python-client==2.149.0 +google-auth==2.35.0 +google-auth-httplib2==0.2.0 +google-generativeai==0.8.3 +googleapis-common-protos==1.65.0 +protobuf==5.28.3 +grpcio==1.67.1 +grpcio-status==1.67.1 +# +speechrecognition +gtts