Skip to content

Commit 9089aa3

Browse files
committed
Merge remote-tracking branch 'upstream/master' into rqt-jtc-robot-description
Signed-off-by: Jakub Delicat <jakub.delicat@husarion.com>
2 parents 70ff845 + b245155 commit 9089aa3

File tree

97 files changed

+1979
-371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1979
-371
lines changed

.github/workflows/rosdoc2.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: rosdoc2
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- ros2_controllers/doc/**
8+
- ros2_controllers/rosdoc2.yaml
9+
- ros2_controllers/package.xml
10+
11+
12+
jobs:
13+
check:
14+
uses: ros-controls/ros2_control_ci/.github/workflows/reusable-rosdoc2.yml@master

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ repos:
2626
- id: check-symlinks
2727
- id: check-xml
2828
- id: check-yaml
29+
args: ["--allow-multiple-documents"]
2930
- id: debug-statements
3031
- id: end-of-file-fixer
3132
- id: mixed-line-ending
@@ -62,7 +63,7 @@ repos:
6263

6364
# CPP hooks
6465
- repo: https://github.com/pre-commit/mirrors-clang-format
65-
rev: v18.1.4
66+
rev: v18.1.5
6667
hooks:
6768
- id: clang-format
6869
args: ['-fallback-style=none', '-i']
@@ -104,6 +105,7 @@ repos:
104105
description: Check if copyright notice is available in all files.
105106
entry: ament_copyright
106107
language: system
108+
exclude: .*/conf\.py$
107109

108110
# Docs - RestructuredText hooks
109111
- repo: https://github.com/PyCQA/doc8
@@ -124,14 +126,14 @@ repos:
124126
# Spellcheck in comments and docs
125127
# skipping of *.svg files is not working...
126128
- repo: https://github.com/codespell-project/codespell
127-
rev: v2.2.6
129+
rev: v2.3.0
128130
hooks:
129131
- id: codespell
130132
args: ['--write-changes', '--uri-ignore-words-list=ist', '-L manuel']
131133
exclude: CHANGELOG\.rst|\.(svg|pyc|drawio)$
132134

133135
- repo: https://github.com/python-jsonschema/check-jsonschema
134-
rev: 0.28.2
136+
rev: 0.28.4
135137
hooks:
136138
- id: check-github-workflows
137139
args: ["--verbose"]

ackermann_steering_controller/CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Changelog for package ackermann_steering_controller
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
4.9.0 (2024-06-05)
6+
------------------
7+
58
4.8.0 (2024-05-14)
69
------------------
710
* Add parameter check for geometric values (`#1120 <https://github.com/ros-controls/ros2_controllers/issues/1120>`_)

ackermann_steering_controller/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>ackermann_steering_controller</name>
5-
<version>4.8.0</version>
5+
<version>4.9.0</version>
66
<description>Steering controller for Ackermann kinematics. Rear fixed wheels are powering the vehicle and front wheels are steering it.</description>
77
<license>Apache License 2.0</license>
88
<maintainer email="bence.magyar.robotics@gmail.com">Bence Magyar</maintainer>

ackermann_steering_controller/src/ackermann_steering_controller.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,29 @@ bool AckermannSteeringController::update_odometry(const rclcpp::Duration & perio
6262
}
6363
else
6464
{
65-
const double rear_right_wheel_value = state_interfaces_[STATE_TRACTION_RIGHT_WHEEL].get_value();
66-
const double rear_left_wheel_value = state_interfaces_[STATE_TRACTION_LEFT_WHEEL].get_value();
67-
const double front_right_steer_position =
68-
state_interfaces_[STATE_STEER_RIGHT_WHEEL].get_value();
69-
const double front_left_steer_position = state_interfaces_[STATE_STEER_LEFT_WHEEL].get_value();
65+
const double traction_right_wheel_value =
66+
state_interfaces_[STATE_TRACTION_RIGHT_WHEEL].get_value();
67+
const double traction_left_wheel_value =
68+
state_interfaces_[STATE_TRACTION_LEFT_WHEEL].get_value();
69+
const double steering_right_position = state_interfaces_[STATE_STEER_RIGHT_WHEEL].get_value();
70+
const double steering_left_position = state_interfaces_[STATE_STEER_LEFT_WHEEL].get_value();
7071
if (
71-
!std::isnan(rear_right_wheel_value) && !std::isnan(rear_left_wheel_value) &&
72-
!std::isnan(front_right_steer_position) && !std::isnan(front_left_steer_position))
72+
std::isfinite(traction_right_wheel_value) && std::isfinite(traction_left_wheel_value) &&
73+
std::isfinite(steering_right_position) && std::isfinite(steering_left_position))
7374
{
7475
if (params_.position_feedback)
7576
{
7677
// Estimate linear and angular velocity using joint information
7778
odometry_.update_from_position(
78-
rear_right_wheel_value, rear_left_wheel_value, front_right_steer_position,
79-
front_left_steer_position, period.seconds());
79+
traction_right_wheel_value, traction_left_wheel_value, steering_right_position,
80+
steering_left_position, period.seconds());
8081
}
8182
else
8283
{
8384
// Estimate linear and angular velocity using joint information
8485
odometry_.update_from_velocity(
85-
rear_right_wheel_value, rear_left_wheel_value, front_right_steer_position,
86-
front_left_steer_position, period.seconds());
86+
traction_right_wheel_value, traction_left_wheel_value, steering_right_position,
87+
steering_left_position, period.seconds());
8788
}
8889
}
8990
}

ackermann_steering_controller/test/ackermann_steering_controller_params.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ test_ackermann_steering_controller:
66
open_loop: false
77
velocity_rolling_window_size: 10
88
position_feedback: false
9-
use_stamped_vel: true
109
rear_wheels_names: [rear_right_wheel_joint, rear_left_wheel_joint]
1110
front_wheels_names: [front_right_steering_joint, front_left_steering_joint]
1211

ackermann_steering_controller/test/ackermann_steering_controller_preceeding_params.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ test_ackermann_steering_controller:
55
open_loop: false
66
velocity_rolling_window_size: 10
77
position_feedback: false
8-
use_stamped_vel: true
98
rear_wheels_names: [pid_controller/rear_right_wheel_joint, pid_controller/rear_left_wheel_joint]
109
front_wheels_names: [pid_controller/front_right_steering_joint, pid_controller/front_left_steering_joint]
1110
rear_wheels_state_names: [rear_right_wheel_joint, rear_left_wheel_joint]

ackermann_steering_controller/test/test_ackermann_steering_controller.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ class AckermannSteeringControllerFixture : public ::testing::Test
280280
bool open_loop_ = false;
281281
unsigned int velocity_rolling_window_size_ = 10;
282282
bool position_feedback_ = false;
283-
bool use_stamped_vel_ = true;
284283
std::vector<std::string> rear_wheels_names_ = {"rear_right_wheel_joint", "rear_left_wheel_joint"};
285284
std::vector<std::string> front_wheels_names_ = {
286285
"front_right_steering_joint", "front_left_steering_joint"};

admittance_controller/CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Changelog for package admittance_controller
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
4.9.0 (2024-06-05)
6+
------------------
7+
58
4.8.0 (2024-05-14)
69
------------------
710

admittance_controller/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>admittance_controller</name>
5-
<version>4.8.0</version>
5+
<version>4.9.0</version>
66
<description>Implementation of admittance controllers for different input and output interface.</description>
77
<maintainer email="denis@stogl.de">Denis Štogl</maintainer>
88
<maintainer email="bence.magyar.robotics@gmail.com">Bence Magyar</maintainer>

0 commit comments

Comments
 (0)