Skip to content

Commit 9fbd4ba

Browse files
General code maintenance - focus on ROSbot XL manipulation (#138)
1 parent e8584d5 commit 9fbd4ba

35 files changed

+330
-855
lines changed
314 KB
Loading

.github/workflows/backport.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Backport
3+
4+
on:
5+
pull_request_target:
6+
types: [closed]
7+
workflow_dispatch:
8+
inputs:
9+
pr_number:
10+
description: Pull request number to backport. Please add backport labels to the PR before running
11+
this workflow.
12+
required: true
13+
14+
jobs:
15+
backport:
16+
name: Backport
17+
runs-on: ubuntu-latest
18+
if: >
19+
(github.event_name == 'workflow_dispatch') ||
20+
(
21+
github.event_name == 'pull_request_target' &&
22+
github.event.pull_request.merged
23+
)
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: korthout/backport-action@v3
27+
with:
28+
github_token: ${{ secrets.GH_PAT }}
29+
source_pr_number: ${{ inputs.pr_number || github.event.pull_request.number }}

.github/workflows/run-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: Setup ROS environment
24-
uses: ros-tooling/setup-ros@0.7.9
24+
uses: ros-tooling/setup-ros@0.7.13
2525
with:
2626
use-ros2-testing: true
2727

@@ -39,7 +39,7 @@ jobs:
3939
"packages-up-to": ["rosbot"]
4040
},
4141
"test": {
42-
"packages-skip": ["rosbot_bringup", "rosbot_gazebo"],
42+
"packages-skip": ["rosbot_bringup", "rosbot_gazebo", "rosbot_joy"],
4343
"packages-select-regex": ["rosbot*"]
4444
}
4545
}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Documentation is available in ROS_API.md.
2727
```bash
2828
mkdir rosbot_ws
2929
cd rosbot_ws
30-
git clone https://github.com/husarion/rosbot_ros.git src/rosbot_ros
30+
git clone -b jazzy https://github.com/husarion/rosbot_ros.git src/rosbot_ros
3131
```
3232

3333
### Configure environment
@@ -56,7 +56,6 @@ vcs import src < src/rosbot_ros/rosbot/manipulator.repos # For ROSbot XL manipul
5656

5757
sudo rosdep init
5858
rosdep update --rosdistro $ROS_DISTRO
59-
export PIP_BREAK_SYSTEM_PACKAGES=1
6059
rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y
6160

6261
colcon build --symlink-install --packages-up-to rosbot --cmake-args -DCMAKE_BUILD_TYPE=Release
@@ -100,6 +99,8 @@ ros2 launch rosbot_gazebo simulation.launch.py robot_model:=<rosbot/rosbot_xl>
10099
||| `components_config` | Specify file which contains components. These components will be included in URDF. Available options can be found in [ros_components_description](https://github.com/husarion/ros_components_description/blob/jazzy/README.md#available-urdf-sensors) <br/> **_string_:** [`components.yaml`](rosbot_description/config/components.yaml) |
101100
||| `configuration` | Specify configuration packages. Currently only ROSbot XL has available packages. Packages: `basic`, `telepresence`, `autonomy`, `manipulation`, `manipulation_pro`. <br/> **_string:_** 'basic' |
102101
||| `controller_config` | Path to controller configuration file. <br/> **_string:_** [`{robot_model}/{mecanum/diff}_drive_controller.yaml`](rosbot_controller/config/) |
102+
||| `joy_config` | The file path to the configuration YAML file for the `teleop_twist_joy` node. <br/> **_string:_** [`joy.yaml`](rosbot_bringup/config/joy.yaml) |
103+
||| `joy_vel` | The topic name to which velocity commands will be published. <br/> **_string:_** `cmd_vel` |
103104
||| `mecanum` | Whether to use mecanum drive controller, otherwise use diff drive. <br/> **_bool:_** `False` |
104105
||| `namespace` | Add namespace to all launched nodes. <br/> **_string:_** `env(ROBOT_NAMESPACE)` |
105106
||| `robot_model` | Specify robot model. <br/> **_string:_** `env(ROBOT_MODEL_NAME)` (choices: `rosbot`, `rosbot_xl`) |

rosbot/manipulator.repos

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
repositories:
2-
dynamixel_hardware_interface: # Should be available in apt after sync
3-
type: git
4-
url: https://github.com/ROBOTIS-GIT/dynamixel_hardware_interface.git
5-
version: 4e0c7ba6f0650c0fe1e97b421788a58388df63de
6-
dynamixel_interfaces: # Should be available in apt after sync
7-
type: git
8-
url: https://github.com/ROBOTIS-GIT/dynamixel_interfaces.git
9-
version: 3392e1214c62c7ee9e05ccc811e3e829c063bae8
102
open_manipulator_x:
113
type: git
124
url: https://github.com/husarion/open_manipulator_x

rosbot/rosbot_hardware.repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories:
1010
ros_components_description:
1111
type: git
1212
url: https://github.com/husarion/ros_components_description.git
13-
version: 9f914cfd5e153f4cd012711e8fa031bef6bb346c
13+
version: 8ab5219b0663204afbe9987f6472d832e02539c6
1414
rosbot_hardware_interfaces:
1515
type: git
1616
url: https://github.com/husarion/rosbot_hardware_interfaces.git

rosbot/rosbot_simulation.repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ repositories:
1010
ros_components_description:
1111
type: git
1212
url: https://github.com/husarion/ros_components_description.git
13-
version: 9f914cfd5e153f4cd012711e8fa031bef6bb346c
13+
version: 8ab5219b0663204afbe9987f6472d832e02539c6

rosbot_bringup/launch/bringup.launch.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def generate_launch_description():
5757

5858
rosbot_bringup = FindPackageShare("rosbot_bringup")
5959
rosbot_controller = FindPackageShare("rosbot_controller")
60+
rosbot_joy = FindPackageShare("rosbot_joy")
6061
rosbot_localization = FindPackageShare("rosbot_localization")
6162
rosbot_utils = FindPackageShare("rosbot_utils")
6263

@@ -89,6 +90,12 @@ def generate_launch_description():
8990
launch_arguments={"robot_model": robot_model}.items(),
9091
)
9192

93+
joy_launch = IncludeLaunchDescription(
94+
PythonLaunchDescriptionSource(
95+
PathJoinSubstitution([rosbot_joy, "launch", "joy.launch.py"])
96+
)
97+
)
98+
9299
green_color = "\033[92m"
93100
reset_color = "\033[0m"
94101

@@ -109,6 +116,7 @@ def generate_launch_description():
109116
microros_launch,
110117
localization_launch,
111118
laser_filter_launch,
119+
joy_launch,
112120
status_info,
113121
]
114122

rosbot_bringup/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<exec_depend condition="$HUSARION_ROS_BUILD_TYPE == hardware">launch_ros</exec_depend>
2121
<exec_depend condition="$HUSARION_ROS_BUILD_TYPE == hardware">micro_ros_agent</exec_depend>
2222
<exec_depend condition="$HUSARION_ROS_BUILD_TYPE == hardware">rosbot_controller</exec_depend>
23+
<exec_depend condition="$HUSARION_ROS_BUILD_TYPE == hardware">rosbot_joy</exec_depend>
2324
<exec_depend condition="$HUSARION_ROS_BUILD_TYPE == hardware">rosbot_localization</exec_depend>
2425
<exec_depend condition="$HUSARION_ROS_BUILD_TYPE == hardware">rosbot_utils</exec_depend>
2526

rosbot_bringup/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
setup(
2525
name=package_name,
26-
version="0.14.0",
26+
version="0.15.1",
2727
packages=find_packages(exclude=["test"]),
2828
data_files=[
2929
("share/ament_index/resource_index/packages", [f"resource/{package_name}"]),

0 commit comments

Comments
 (0)