Skip to content

Commit

Permalink
Merge pull request #392 from k-okada/google_chat_ros
Browse files Browse the repository at this point in the history
test google_chat_ros
  • Loading branch information
k-okada authored Nov 12, 2022
2 parents 434d402 + 2a6dfc9 commit a8464dc
Show file tree
Hide file tree
Showing 36 changed files with 1,454 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
ROS_PARALLEL_TEST_JOBS: "-j8"
CATKIN_PARALLEL_JOBS: "-i"
NOT_TEST_INSTALL : true
BEFORE_SCRIPT : "for name in dialogflow_task_executive ros_speech_recognition sesame_ros ffha libsiftfast nlopt julius julius_ros downward assimp_devel; do echo \\$name; find $GITHUB_WORKSPACE -iname \\$name -exec touch {}/CATKIN_IGNORE \\; ; ls -al \\$(find -iname \\$name)/; done" # Skip large packagses / Skip packages that could not build on indigo dialogflow_task_executive/ros_speech_recognition/sesame_ros
BEFORE_SCRIPT : "for name in dialogflow_task_executive ros_speech_recognition sesame_ros ffha libsiftfast nlopt julius julius_ros downward assimp_devel google_chat_ros; do echo \\$name; find $GITHUB_WORKSPACE -iname \\$name -exec touch {}/CATKIN_IGNORE \\; ; ls -al \\$(find -iname \\$name)/; done" # Skip large packagses / Skip packages that could not build on indigo dialogflow_task_executive/ros_speech_recognition/sesame_ros
- ROS_DISTRO: kinetic
CONTAINER: ubuntu:16.04
ROS_PARALLEL_TEST_JOBS: "-j8"
CATKIN_PARALLEL_JOBS: "-i"
EXTRA_DEB : "python-lxml"
BEFORE_SCRIPT : "sudo add-apt-repository -y ppa:jblgf0/python; sudo apt-get update; sudo apt-get install -y python3.6 python3.6-venv libpython3.6-dev; sudo ln -sf python3.6 /usr/bin/python3; ls -al /usr/bin/python3; python3 --version; python3 -v -m venv /tmp/v"
- ROS_DISTRO: melodic
CONTAINER: ubuntu:18.04
ROS_PARALLEL_TEST_JOBS: "-j8"
Expand Down Expand Up @@ -83,7 +84,8 @@ jobs:
- name: Run jsk_travis
uses: jsk-ros-pkg/jsk_travis@master
with:
ROS_PARALLEL_JOBS : ${{ matrix.ROS_PARALLEL_JOBS }}
# darty hack, jsk_travis runs catkin build --make-args $ROS_PARALLEL_JOBS --
ROS_PARALLEL_JOBS : ${{ matrix.ROS_PARALLEL_JOBS }} LANG=C.UTF-8 LC_ALL=C.UTF-8
CATKIN_PARALLEL_JOBS : ${{ matrix.CATKIN_PARALLEL_JOBS }}
ROS_PARALLEL_TEST_JOBS : ${{ matrix.ROS_PARALLEL_TEST_JOBS }}
CATKIN_PARALLEL_TEST_JOBS : ${{ matrix.CATKIN_PARALLEL_TEST_JOBS }}
Expand All @@ -94,6 +96,7 @@ jobs:
BEFORE_SCRIPT : ${{ matrix.BEFORE_SCRIPT }}
EXTRA_DEB : ${{ matrix.EXTRA_DEB }}


kinetic_i386:
runs-on: ubuntu-latest
name: kinetic_i386
Expand All @@ -114,11 +117,13 @@ jobs:
with:
EXTRA_DEB : "python-lxml"
ROS_DISTRO : kinetic
ROS_PARALLEL_JOBS : "LANG=C.UTF-8 LC_ALL=C.UTF-8"
ROS_PARALLEL_TEST_JOBS : "-j8"
CATKIN_PARALLEL_JOBS: "-i"
ROSDEP_ADDITIONAL_OPTIONS : "-n -q -r --ignore-src --skip-keys=python-google-cloud-texttospeech-pip --skip-keys=python-dialogflow-pip" # Skip installation of grpcio by pip because it causes error
# https://github.com/jsk-ros-pkg/jsk_3rdparty/pull/237 : (Note that pip==21.0.1 is incompatible with python 2.x)
BEFORE_SCRIPT : "sudo pip install virtualenv==15.1.0"
BEFORE_SCRIPT : "sudo pip install virtualenv==15.1.0; sudo add-apt-repository -y ppa:jblgf0/python; sudo apt-get update; sudo apt-get install -y python3.6 python3.6-venv libpython3.6-dev; sudo ln -sf python3.6 /usr/bin/python3"


arm:
runs-on: ubuntu-latest
Expand All @@ -137,7 +142,7 @@ jobs:
submodules: 'true'
- name: Skip packagse
run: |
for name in ffha libsiftfast nlopt julius julius_ros downward assimp_devel; do echo $name; find -iname $name -exec touch {}/CATKIN_IGNORE \; ; ls -al $(find -iname $name)/; done
for name in ffha libsiftfast nlopt julius julius_ros downward assimp_devel google_chat_ros; do echo $name; find -iname $name -exec touch {}/CATKIN_IGNORE \; ; ls -al $(find -iname $name)/; done
- uses: uraimo/run-on-arch-action@v2
name: Run commands
with:
Expand All @@ -156,5 +161,6 @@ jobs:
export USE_TRAVIS=true
export USE_DOCKER=false
export NOT_TEST_INSTALL=true
export ROS_PARALLEL_JOBS="--make-args LANG=C.UTF-8 LC_ALL=C.UTF-8"
set +o nounset
source .travis/travis.sh
1 change: 1 addition & 0 deletions google_chat_ros/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requirements.txt
73 changes: 73 additions & 0 deletions google_chat_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
cmake_minimum_required(VERSION 2.8.3)
project(google_chat_ros)

find_package(
catkin REQUIRED COMPONENTS
catkin_virtualenv REQUIRED
rospy
actionlib_msgs
std_msgs
message_generation
)

catkin_python_setup()

add_message_files(
DIRECTORY msg
)

add_action_files(
FILES
SendMessage.action
)

generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)

catkin_package()

# generate the virtualenv
catkin_generate_virtualenv(
INPUT_REQUIREMENTS requirements.in
PYTHON_INTERPRETER python3
USE_SYSTEM_PACKAGES FALSE
CHECK_VENV FALSE
)

# install
# euslisp
file(GLOB EUSLISP_SCRIPTS scripts/*.l)
install(FILES ${EUSLISP_SCRIPTS}
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

# python
file(GLOB PYTHON_SCRIPTS scripts/*.py)
catkin_install_python(
PROGRAMS ${PYTHON_SCRIPTS}
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
# python requirements
install(FILES requirements.txt
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

# launch
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

# import test
if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS catkin_virtualenv rostest)
catkin_install_python(
PROGRAMS test/test_import.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
add_rostest(test/import.test
DEPENDENCIES ${PROJECT_NAME}_generate_virtualenv
)
endif()
Loading

0 comments on commit a8464dc

Please sign in to comment.