Skip to content

Commit

Permalink
Update CMakeLists with install and upadte ros ci to test launch files
Browse files Browse the repository at this point in the history
Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci

Update ros ci
  • Loading branch information
yeshasvitirupachuri committed Jan 6, 2021
1 parent 3abc3a9 commit 51dd5e2
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 27 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/check-ros-distribution.sh

This file was deleted.

18 changes: 11 additions & 7 deletions .github/workflows/ros-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This is a basic workflow to help you get started with Actions

# ROS Continuos Integration based on ros-tooling https://github.com/ros-tooling
name: ROS CI

# Controls when the action will run.
Expand Down Expand Up @@ -43,17 +42,22 @@ jobs:
- uses: ros-tooling/setup-ros@v0.1
with:
required-ros-distributions: ${{ matrix.ros_distribution }}
# joint-state-publisher package is deprecated, install use joint-state-publisher-gui
- run: sudo apt-get install ros-melodic-joint-state-publisher-gui

# joint-state-publisher package is deprecated, instead use joint-state-publisher-gui
- run: sudo apt-get install ros-melodic-joint-state-publisher-gui

- uses: ros-tooling/action-ros-ci@v0.1
id: action-ros-ci
with:
vcs-repo-file-url: "${{ github.workspace }}/.github/workflows/rosdeps_packages.repos"
package-name: fake_ar_publisher universal_robot myworkcell_core myworkcell_support
# Following https://github.com/ros-tooling/action-ros-ci#use-with-a-private-repo
# actions-ros-ci on a private repository needs a Github Token
import-token: ${{ secrets.ROS_CI_TOKEN }}
target-ros1-distro: ${{ matrix.ros_distribution }}
- run: ${{ github.workspace }}/.github/workflows/check-ros-distribution.sh "${{ matrix.ros_distribution }}"
#Test urdf launch
- run: roslaunch myworkcell_support urdf.launch

# Test urdf launch file
- run: "source /opt/ros/${{ matrix.ros_distribution }}/setup.bash && source ${{ steps.action-ros-ci.outputs.ros-workspace-directory-name }}/install/local_setup.bash && source ${{ steps.action-ros-ci.outputs.ros-workspace-directory-name }}/install/setup.bash && roslaunch myworkcell_support urdf.launch"

# Test workcell launch file
- run: "source /opt/ros/${{ matrix.ros_distribution }}/setup.bash && source ${{ steps.action-ros-ci.outputs.ros-workspace-directory-name }}/install/local_setup.bash && source ${{ steps.action-ros-ci.outputs.ros-workspace-directory-name }}/install/setup.bash && roslaunch myworkcell_support workcell.launch"
26 changes: 18 additions & 8 deletions myworkcell_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,27 @@ target_link_libraries(myworkcell_node

## Mark executables for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_executables.html
# install(TARGETS ${PROJECT_NAME}_node
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )
install(TARGETS vision_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(TARGETS myworkcell_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

## Mark libraries for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
# install(TARGETS ${PROJECT_NAME}
# ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
# RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
# )
install(TARGETS vision_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)

install(TARGETS myworkcell_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)

## Mark cpp header files for installation
# install(DIRECTORY include/${PROJECT_NAME}/
Expand Down
15 changes: 15 additions & 0 deletions myworkcell_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,21 @@ include_directories(
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
# )

install(DIRECTORY urdf/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/urdf
PATTERN ".svn" EXCLUDE
)

install(DIRECTORY rviz/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/rviz
PATTERN ".svn" EXCLUDE
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE
)

## Mark libraries for installation
## See http://docs.ros.org/melodic/api/catkin/html/howto/format1/building_libraries.html
# install(TARGETS ${PROJECT_NAME}
Expand Down

0 comments on commit 51dd5e2

Please sign in to comment.