Skip to content

Commit

Permalink
Merge pull request #4 from Wiktor-99/fix_ci
Browse files Browse the repository at this point in the history
Fix ci
  • Loading branch information
Wiktor-99 authored Aug 21, 2024
2 parents 333ab23 + 79a5cda commit 09ad74f
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 27 deletions.
1 change: 1 addition & 0 deletions .github/actions/lint/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set -e

sudo apt-get update
source /opt/ros/$ROS_DISTRO/setup.bash
if [[ "ament_flake8" == "ament_${LINTER}" ]]; then
ament_${LINTER} . --config python_linter.flake8
else
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:jammy
image: ubuntu:noble

steps:
- uses: ros-tooling/[email protected]
Expand Down
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ repos:
- id: black
args: ["--line-length=120", "--preview", "--exclude=grasp_service_parameters.py"]

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
- repo: local
hooks:
- id: flake8
args: ["--ignore=E501,W503,E203", "--exclude=grasp_service_parameters.py"]
name: flake8 checker
entry: bash -c "flake8 --config python_linter.flake8"
language: python

- repo: https://github.com/PyCQA/doc8
rev: v1.1.1
Expand Down
1 change: 1 addition & 0 deletions python_linter.flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[flake8]
exclude = .git,__pycache__,grasp_service_parameters.py, install/*, build/*
extend-ignore = Q000, D100, D101, D104, D103, D102, D107
max-line-length = 120
21 changes: 14 additions & 7 deletions ros2_grasp_service/ros2_grasp_service/grasp_service.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
from rclpy import init, spin_once, shutdown, spin
from control_msgs.action import FollowJointTrajectory, GripperCommand
from rclpy.node import Node
from std_srvs.srv import Empty
from rclpy.action import ActionClient
from time import sleep

from action_msgs.msg import GoalStatus
from trajectory_msgs.msg import JointTrajectoryPoint, JointTrajectory

from builtin_interfaces.msg import Duration
from time import sleep

from control_msgs.action import FollowJointTrajectory, GripperCommand

from rclpy import init, shutdown, spin, spin_once
from rclpy.action import ActionClient
from rclpy.node import Node

from ros2_grasp_service.grasp_service_parameters import grasp_service_parameters

from std_srvs.srv import Empty

from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint


class FollowJointTrajectoryActionClient(Node):
def __init__(self, joints_controller_name):
Expand Down
6 changes: 4 additions & 2 deletions ros2_grasp_service/setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import os
from glob import glob

from generate_parameter_library_py.setup_helper import generate_parameter_module

from setuptools import find_packages, setup
from glob import glob
import os

package_name = "ros2_grasp_service"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import os

from ament_index_python.packages import get_package_share_directory

from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription, DeclareLaunchArgument
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch_ros.actions import Node
from launch.substitutions import LaunchConfiguration

from launch_ros.actions import Node


def generate_launch_description():
open_manipulator_bringup = IncludeLaunchDescription(
Expand Down
5 changes: 3 additions & 2 deletions ros2_grasp_service_demo/manipulator_simulation/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import find_packages, setup
from glob import glob
import os
from glob import glob

from setuptools import find_packages, setup

package_name = "manipulator_simulation"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from ament_index_python.packages import get_package_share_directory

from launch import LaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.actions import IncludeLaunchDescription
from launch_ros.actions import Node
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch.substitutions import PathJoinSubstitution

from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from setuptools import find_packages, setup
import os
from glob import glob

from setuptools import find_packages, setup

package_name = "open_manipulator_bringup"

setup(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import os

from ament_index_python.packages import get_package_share_directory

from launch import LaunchDescription
from launch_ros.actions import Node
from launch.actions import ExecuteProcess, RegisterEventHandler
from launch.event_handlers import OnProcessExit
from ament_index_python.packages import get_package_share_directory

from launch_ros.actions import Node

import xacro
import os


def generate_launch_description():
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import find_packages, setup
from glob import glob
import os
from glob import glob

from setuptools import find_packages, setup

package_name = "open_manipulator_control"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import find_packages, setup
from glob import glob
import os
from glob import glob

from setuptools import find_packages, setup

package_name = "open_manipulator_description"

Expand Down

0 comments on commit 09ad74f

Please sign in to comment.