Skip to content

Comments

Add a custom plugin for simulating actuator dynamics to the demos#693

Merged
ahcorde merged 19 commits intorollingfrom
add/custom_plugin
Sep 29, 2025
Merged

Add a custom plugin for simulating actuator dynamics to the demos#693
ahcorde merged 19 commits intorollingfrom
add/custom_plugin

Conversation

@christophfroehlich
Copy link
Member

on top of #688

@@ -0,0 +1,84 @@
// Copyright 2021 Open Source Robotics Foundation, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Copyright 2021 Open Source Robotics Foundation, Inc.
// Copyright 2025 Open Source Robotics Foundation, Inc.

Comment on lines +25 to +26
#include "rclcpp_lifecycle/state.hpp"
#include "rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#include "rclcpp_lifecycle/state.hpp"
#include "rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp"
#include <rclcpp_lifecycle/state.hpp>
#include <rclcpp_lifecycle/node_interfaces/lifecycle_node_interface.hpp>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the other repos we use the google codestyle which says:

Headers should only be included using an angle-bracketed path if the library requires you to do so.

as you prefer..

@@ -0,0 +1,118 @@
# Copyright 2021 Open Source Robotics Foundation, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2021 Open Source Robotics Foundation, Inc.
# Copyright 2025 Open Source Robotics Foundation, Inc.

@@ -0,0 +1,402 @@
// Copyright 2021 Open Source Robotics Foundation, Inc.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Copyright 2021 Open Source Robotics Foundation, Inc.
// Copyright 2025 Open Source Robotics Foundation, Inc.

#include <gz/sim/components/Name.hh>
#include <gz/sim/components/ParentEntity.hh>

#include "control_toolbox/low_pass_filter.hpp"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#include "control_toolbox/low_pass_filter.hpp"
#include <control_toolbox/low_pass_filter.hpp>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

christophfroehlich and others added 3 commits September 29, 2025 10:43
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde ahcorde merged commit 0dab1d5 into rolling Sep 29, 2025
6 checks passed
@ahcorde ahcorde deleted the add/custom_plugin branch September 29, 2025 10:26
@christophfroehlich
Copy link
Member Author

@Mergifyio backport kilted jazzy humble

@mergify
Copy link
Contributor

mergify bot commented Feb 22, 2026

backport kilted jazzy humble

✅ Backports have been created

Details

Cherry-pick of 0dab1d5 has failed:

On branch mergify/bp/humble/pr-693
Your branch is up to date with 'origin/humble'.

You are currently cherry-picking commit 0dab1d5.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   gz_ros2_control_demos/CMakeLists.txt
	new file:   gz_ros2_control_demos/gz_custom_hardware_plugins.xml
	new file:   gz_ros2_control_demos/include/gz_ros2_control_demos/gz_custom_system.hpp
	new file:   gz_ros2_control_demos/launch/cart_example_velocity_custom_plugin.launch.py
	new file:   gz_ros2_control_demos/src/gz_custom_system.cpp
	new file:   gz_ros2_control_demos/urdf/test_cart_velocity_custom_plugin.xacro.urdf
	new file:   gz_ros2_control_tests/tests/velocity_custom_plugin_test.py

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   doc/index.rst
	both modified:   gz_ros2_control_demos/package.xml
	both modified:   gz_ros2_control_tests/tests/CMakeLists.txt

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

mergify bot pushed a commit that referenced this pull request Feb 22, 2026
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit 0dab1d5)
mergify bot pushed a commit that referenced this pull request Feb 22, 2026
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit 0dab1d5)
mergify bot pushed a commit that referenced this pull request Feb 22, 2026
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
(cherry picked from commit 0dab1d5)

# Conflicts:
#	doc/index.rst
#	gz_ros2_control_demos/package.xml
#	gz_ros2_control_tests/tests/CMakeLists.txt
christophfroehlich added a commit that referenced this pull request Feb 22, 2026
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants