Switch to ROS2 Humble

This commit is contained in:
2023-01-10 15:48:11 +02:00
parent d694289634
commit 3fe0ab12c3
12 changed files with 39 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
ARG ROS_DISTRO=galactic
ARG ROS_DISTRO=humble
FROM ros:${ROS_DISTRO}-ros-base
### Use bash by default
@@ -22,7 +22,11 @@ RUN apt-get update && \
### Install extra dependencies
RUN apt-get update && \
apt-get install -yq python3-pil.imagetk
apt-get install -yq python3-pil.imagetk && \
apt-get install -yq ros-${ROS_DISTRO}-pilz-industrial-motion-planner && \
apt-get install -yq tmux && \
apt-get install -yq ros-${ROS_DISTRO}-desktop && \
apt-get install -yq ros-${ROS_DISTRO}-rclcpp-components
### Install AxiDraw
RUN apt-get update && \

View File

@@ -1,25 +1,25 @@
repositories:
pymoveit2:
type: git
url: https://github.com/AndrejOrsula/pymoveit2.git
version: master
panda_ign_moveit2:
type: git
url: https://github.com/AndrejOrsula/panda_ign_moveit2.git
version: master
ros_ign:
type: git
url: https://github.com/ignitionrobotics/ros_ign.git
version: galactic
ign_ros2_control:
type: git
url: https://github.com/AndrejOrsula/ign_ros2_control.git
version: devel
ros2_controllers:
type: git
url: https://github.com/AndrejOrsula/ros2_controllers.git
version: jtc_effort
#pymoveit2:
# type: git
# url: https://github.com/AndrejOrsula/pymoveit2.git
# version: master
#panda_ign_moveit2:
# type: git
# url: https://github.com/AndrejOrsula/panda_ign_moveit2.git
# version: master
#ros_ign:
# type: git
# url: https://github.com/ignitionrobotics/ros_ign.git
# version: galactic
#ign_ros2_control:
# type: git
# url: https://github.com/AndrejOrsula/ign_ros2_control.git
# version: devel
#ros2_controllers:
# type: git
# url: https://github.com/AndrejOrsula/ros2_controllers.git
# version: jtc_effort
xarm_ros2:
type: git
url: https://github.com/xArm-Developer/xarm_ros2
version: galactic
version: humble

View File

@@ -21,9 +21,6 @@
<exec_depend>ros_ign_gazebo</exec_depend>
<exec_depend>rviz2</exec_depend>
<exec_depend>panda_description</exec_depend>
<exec_depend>panda_moveit_config</exec_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>

View File

@@ -12,6 +12,7 @@ find_package(ament_cmake REQUIRED)
# find_package(<dependency> REQUIRED)
#
find_package(rclcpp REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(robot_interfaces REQUIRED)
find_package(robot_controller REQUIRED)

View File

@@ -13,6 +13,7 @@
<test_depend>ament_lint_common</test_depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<!-- <depend>robot_interfaces</depend> -->
<!-- <depend>robot_controller</depend> -->
<depend>geometry_msgs</depend>

View File

@@ -59,8 +59,8 @@ def launch_setup(context, *args, **kwargs):
get_xacro_file_content = getattr(mod, 'get_xacro_file_content')
robot_description = {
'robot_description': get_xacro_file_content(
#xacro_file=PathJoinSubstitution([FindPackageShare('xarm_description'), 'urdf', 'xarm_device.urdf.xacro']),
xacro_file=PathJoinSubstitution([FindPackageShare('draw_svg'), 'urdf', 'xarm_pen.urdf.xacro']),
xacro_file=PathJoinSubstitution([FindPackageShare('xarm_description'), 'urdf', 'xarm_device.urdf.xacro']),
#xacro_file=PathJoinSubstitution([FindPackageShare('draw_svg'), 'urdf', 'xarm_pen.urdf.xacro']),
arguments={
'prefix': prefix,
'dof': dof,

View File

@@ -1,11 +1,10 @@
#!/usr/bin/env python3
"""Example that uses MoveIt 2 to follow a target inside Ignition Gazebo"""
"""GUI for virtual drawing surface"""
import rclpy
from geometry_msgs.msg import Pose, PoseWithCovariance, Point
from nav_msgs.msg import Odometry
from sensor_msgs.msg import Image as SensorImage
from pymoveit2 import MoveIt2
from robots import lite6
from rclpy.callback_groups import ReentrantCallbackGroup
from rclpy.node import Node

View File

@@ -8,7 +8,7 @@
<license>TODO: License declaration</license>
<depend>rclpy</depend>
<depend>robot_interfaces</depend>
<exec_depend>robot_interfaces</exec_depend>
<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>

View File

@@ -8,6 +8,7 @@ endif()
# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(robot_interfaces REQUIRED)
find_package(robot_controller REQUIRED)

View File

@@ -10,6 +10,7 @@
<buildtool_depend>ament_cmake</buildtool_depend>
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<!-- <depend>robot_interfaces</depend> -->
<!-- <depend>robot_controller</depend> -->
<depend>moveit</depend>

View File

@@ -13,6 +13,7 @@ endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_action REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(robot_interfaces REQUIRED)
include_directories(include)
@@ -20,11 +21,13 @@ include_directories(include)
add_library(robot_controller src/cpp/robot_controller.cpp)
ament_target_dependencies(robot_controller
"rclcpp"
"rclcpp_components"
"rclcpp_action"
"robot_interfaces")
add_executable(dummy_controller src/cpp/dummy_controller.cpp)
ament_target_dependencies(dummy_controller
"rclcpp"
"rclcpp_components"
"rclcpp_action"
"robot_interfaces")

View File

@@ -12,6 +12,7 @@
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<depend>python3-dev</depend>
<depend>geometry_msgs</depend>
<depend>action_msgs</depend>
<depend>std_msgs</depend>