forked from tenfoldpaper/panda_ros2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from LCAS/humble
Vision integration
- Loading branch information
Showing
14 changed files
with
404 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: ros CI | ||
|
||
on: | ||
push: | ||
# you may want to configure the branches that this should be run on here. | ||
branches: [ "humble" ] | ||
pull_request: | ||
branches: [ "humble" ] | ||
|
||
jobs: | ||
test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions. | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ros_distribution: | ||
# - noetic | ||
- humble | ||
# - iron | ||
|
||
# Define the Docker image(s) associated with each ROS distribution. | ||
# The include syntax allows additional variables to be defined, like | ||
# docker_image in this case. See documentation: | ||
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-configurations-in-a-matrix-build | ||
# | ||
# Platforms are defined in REP 3 and REP 2000: | ||
# https://ros.org/reps/rep-0003.html | ||
# https://ros.org/reps/rep-2000.html | ||
include: | ||
# Noetic Ninjemys (May 2020 - May 2025) | ||
# - docker_image: ubuntu:focal | ||
# ros_distribution: noetic | ||
# ros_version: 1 | ||
|
||
# Humble Hawksbill (May 2022 - May 2027) | ||
- docker_image: ubuntu:jammy | ||
ros_distribution: humble | ||
ros_version: 2 | ||
|
||
# Iron Irwini (May 2023 - November 2024) | ||
# - docker_image: ubuntu:jammy | ||
# ros_distribution: iron | ||
# ros_version: 2 | ||
|
||
# # Rolling Ridley (No End-Of-Life) | ||
# - docker_image: ubuntu:jammy | ||
# ros_distribution: rolling | ||
# ros_version: 2 | ||
|
||
container: | ||
image: ${{ matrix.docker_image }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: setup ROS environment | ||
uses: LCAS/setup-ros@master | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distribution }} | ||
- name: build and test ROS 1 | ||
if: ${{ matrix.ros_version == 1 }} | ||
uses: ros-tooling/[email protected] | ||
with: | ||
import-token: ${{ github.token }} | ||
target-ros1-distro: ${{ matrix.ros_distribution }} | ||
- name: build and test ROS 2 | ||
if: ${{ matrix.ros_version == 2 }} | ||
uses: ros-tooling/[email protected] | ||
with: | ||
import-token: ${{ github.token }} | ||
target-ros2-distro: ${{ matrix.ros_distribution }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version='1.0' encoding='utf-8'?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro" name="panda"> | ||
<xacro:arg name="arm_id" default="panda"/> <!-- Name of this panda --> | ||
<xacro:arg name="hand" default="false"/> <!-- Should a franka_gripper be mounted at the flange? --> | ||
<xacro:arg name="camera" default="true"/> <!-- Should a camera be mounted at the flange? --> | ||
<xacro:arg name="camera_model" default="blackfly_s"/> <!-- Which camera model will be used --> | ||
<xacro:arg name="robot_ip" default=""/> <!-- IP address or hostname of the robot" --> | ||
<xacro:arg name="use_fake_hardware" default="false"/> | ||
<xacro:arg name="fake_sensor_commands" default="false"/> | ||
|
||
<xacro:include filename="$(find franka_description)/robots/panda_arm.xacro"/> | ||
<xacro:panda_arm arm_id="$(arg arm_id)" safety_distance="0.03"/> | ||
|
||
<xacro:if value="$(arg hand)"> | ||
<xacro:include filename="$(find franka_description)/robots/hand.xacro"/> | ||
<xacro:hand ns="$(arg arm_id)" rpy="0 0 ${-pi/4}" connected_to="$(arg arm_id)_link8" safety_distance="0.03"/> | ||
</xacro:if> | ||
<xacro:if value="$(arg camera)"> | ||
<xacro:include filename="$(find flir_camera_description)/urdf/camera.urdf.xacro"/> | ||
<xacro:camera ns="$(arg arm_id)" rpy="0 ${-pi/2} 0" xyz="0.01425 0 0.09" connected_to="$(arg arm_id)_link8"/> | ||
</xacro:if> | ||
<xacro:include filename="$(find franka_description)/robots/panda_arm.ros2_control.xacro"/> | ||
<xacro:panda_arm_ros2_control ns="$(arg arm_id)" robot_ip="$(arg robot_ip)" use_fake_hardware="$(arg use_fake_hardware)" fake_sensor_commands="$(arg fake_sensor_commands)"/> | ||
</robot> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.