Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multi cm example #8

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
07e8d41
Fix Python black pre-commit hook (#164)
destogl Mar 30, 2022
96ef3b5
Changed JointStateController to JointStateBroadcaster in instructions…
mamueluth Apr 6, 2022
c02942a
CallbackReturn Fix (#173)
ikamii Apr 21, 2022
a3a792f
Fix up small error in example docs (#174)
destogl May 11, 2022
6bd6631
Pass time and period to read() and write() (#179)
bmagyar May 13, 2022
48bb610
Add First-Time Users section to the README (#181)
May 23, 2022
2fae87b
Fix warning about "output" from launch files (#183)
May 23, 2022
88d12f9
Replace use_sim with use_gazebo (#182)
Jun 18, 2022
aabf2cd
Fix missing correction of output parameter on Nodes in launch files. …
destogl Jul 15, 2022
fe14bf3
Use mock hardware instead of fake hardware plugin package (#188)
bmagyar Jul 15, 2022
ee92329
Fix DLL export defintion. (#195)
destogl Jul 15, 2022
e4c9ba4
Fix bug that doesn't reset commands properly on activation. (#194)
destogl Jul 15, 2022
fe23072
Publish to correct topic in DiffBot example (#196)
destogl Jul 15, 2022
41a8fa5
fixing command line in Step 5 in diffbot example (#155)
HusamZain Jul 15, 2022
f42b06f
Fix output parameter in launch files for testing controllers. (#197)
destogl Jul 15, 2022
4329be0
Fix some typos (#205)
Interactics Aug 21, 2022
a5ed904
ci: :construction_worker: update rhel container (#212)
jaron-l Oct 16, 2022
6478457
Remove ros index links (#204)
bmagyar Nov 2, 2022
4abae28
fake_sensor_commands replaced (#200)
kvkpraneeth Nov 2, 2022
041ab7e
Demo 5b broken, update code fixed (#208)
t3ch9 Dec 13, 2022
de1012a
🔧 Fixes and updated on pre-commit hooks and their action. (#218)
destogl Jan 13, 2023
e38961c
[CI] Add dependabot to automatically update actions in workflows (#219)
destogl Jan 13, 2023
9c7c04e
Bump codecov/codecov-action from 1.0.14 to 3.1.1 (#221)
dependabot[bot] Jan 13, 2023
b393963
Update list of possible reviewers
destogl Jan 13, 2023
53f930e
Merge commit 'b3939631e3586c3a14c53099065b9870afb1a3c4' into multi-cm…
christophfroehlich Aug 5, 2023
11e2c88
Bump example to latest ros2_control(ler) syntax
christophfroehlich Aug 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/"
schedule:
interval: "weekly"
12 changes: 3 additions & 9 deletions .github/reviewer-lottery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,22 @@ groups:
reviewers: 5
usernames:
- rosterloh
- kellyprankin
- progtologist
- arne48
- DasRoteSkelett
- a10263790
- Serafadam
- harderthan
- jaron-l
- malapatiravi
- erickisos
- ShawnSchaerer
- Briancbn
- TomoyaFujita2016
- homalozoa
- erickisos
- anfemosa
- jackcenter
- VX792
- mhubii
- livanov93
- aprotyas
- peterdavidfagan
- UsamaHamayun1
- duringhof
- bijoua29
- kasiceo
- lm2292
- mcbed
2 changes: 1 addition & 1 deletion .github/workflows/ci-coverage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
skip-tests: true
- uses: codecov/codecov-action@v1.0.14
- uses: codecov/codecov-action@v3.1.1
with:
file: ros_ws/lcov/total_coverage.info
flags: unittests
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4.4.0
with:
python-version: 3.9.7
python-version: '3.10'
- name: Install system hooks
run: sudo apt install -qq clang-format-11 cppcheck
- uses: pre-commit/action@v2.0.3
run: sudo apt install -qq clang-format-14 cppcheck
- uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files --hook-stage manual
2 changes: 1 addition & 1 deletion .github/workflows/rolling-rhel-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
env:
ROS_DISTRO: rolling
container: jaronl/ros:rolling-alma
container: ghcr.io/ros-controls/ros:${{ env.ROS_DISTRO }}-rhel
steps:
- uses: actions/checkout@v3
with:
Expand Down
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
repos:
# Standard hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -33,26 +33,26 @@ repos:

# Python hooks
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py36-plus]

- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.12.0
hooks:
- id: black
args: ["--line-length=99"]

# PEP 257
- repo: https://github.com/FalconSocial/pre-commit-mirrors-pep257
rev: v0.3.3
# PyDocStyle
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.2.3
hooks:
- id: pep257
- id: pydocstyle
args: ["--ignore=D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404"]

- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
args: ["--ignore=E501"]
Expand All @@ -63,7 +63,7 @@ repos:
- id: clang-format
name: clang-format
description: Format files with ClangFormat.
entry: clang-format-10
entry: clang-format-14
language: system
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|js|m|proto|vert)$
args: ['-fallback-style=none', '-i']
Expand Down Expand Up @@ -119,7 +119,7 @@ repos:

# Docs - RestructuredText hooks
- repo: https://github.com/PyCQA/doc8
rev: 0.10.1
rev: v1.1.1
hooks:
- id: doc8
args: ['--max-line-length=100', '--ignore=D001']
Expand All @@ -136,7 +136,7 @@ repos:
# Spellcheck in comments and docs
# skipping of *.svg files is not working...
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
rev: v2.2.2
hooks:
- id: codespell
args: ['--write-changes']
Expand Down
66 changes: 41 additions & 25 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/rrbot_1/publisher_forward_position_controller:
ros__parameters:

controller_name: "rrbot_1/forward_position_controller"

publish_topic: "forward_position_controller/commands"
wait_sec_between_publish: 5

goal_names: ["pos1", "pos2", "pos3", "pos4"]
Expand All @@ -14,7 +15,7 @@
/rrbot_2/publisher_forward_position_controller:
ros__parameters:

controller_name: "rrbot_2/forward_position_controller"
publish_topic: "forward_position_controller/commands"
wait_sec_between_publish: 5

goal_names: ["pos1", "pos2", "pos3", "pos4"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
wait_sec_between_publish: 6

goal_names: ["pos1", "pos2", "pos3", "pos4"]
pos1: [0.785, 0.785]
pos2: [0.0, 0.0]
pos3: [-0.785, -0.785]
pos4: [0.0, 0.0]
pos1:
positions: [0.785, 0.785]
pos2:
positions: [0.0, 0.0]
pos3:
positions: [-0.785, -0.785]
pos4:
positions: [0.0, 0.0]

joints:
- rrbot_1_joint1
Expand All @@ -27,10 +31,14 @@
wait_sec_between_publish: 6

goal_names: ["pos1", "pos2", "pos3", "pos4"]
pos1: [-0.785, 0.0]
pos2: [0.0, -0.785]
pos3: [+0.785, -1.57]
pos4: [+1.57, -0.785]
pos1:
positions: [-0.785, 0.0]
pos2:
positions: [0.0, -0.785]
pos3:
positions: [+0.785, -1.57]
pos4:
positions: [+1.57, -0.785]

joints:
- rrbot_2_joint1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
publisher_forward_position_controller:
ros__parameters:

controller_name: "rrbot/forward_position_controller"
wait_sec_between_publish: 5

publish_topic: /rrbot/forward_position_controller/commands

goal_names: ["pos1", "pos2", "pos3", "pos4"]
pos1: [0.785, 0.785]
pos2: [0, 0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ publisher_joint_trajectory_controller:
wait_sec_between_publish: 6

goal_names: ["pos1", "pos2", "pos3", "pos4"]
pos1: [0.785, 0.785]
pos2: [0, 0]
pos3: [-0.785, -0.785]
pos4: [0, 0]
pos1:
positions: [0.785, 0.785]
pos2:
positions: [0.0, 0.0]
pos3:
positions: [-0.785, -0.785]
pos4:
positions: [0.0, 0.0]

joints:
- joint1
Expand Down
5 changes: 1 addition & 4 deletions ros2_control_demo_bringup/launch/diffbot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ def generate_launch_description():
package="controller_manager",
executable="ros2_control_node",
parameters=[robot_description, robot_controllers],
output={
"stdout": "screen",
"stderr": "screen",
},
output="both",
)
robot_state_pub_node = Node(
package="robot_state_publisher",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def generate_launch_description():
"position_trajectory_controller",
"-c",
"/rrbot_1/controller_manager",
"--stopped",
"--inactive",
],
)

Expand All @@ -108,7 +108,7 @@ def generate_launch_description():
"position_trajectory_controller",
"-c",
"/rrbot_2/controller_manager",
"--stopped",
"--inactive",
],
)

Expand Down
5 changes: 1 addition & 4 deletions ros2_control_demo_bringup/launch/rrbot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def generate_launch_description():
"/position_commands",
),
],
output={
"stdout": "screen",
"stderr": "screen",
},
output="both",
)
robot_state_pub_node = Node(
package="robot_state_publisher",
Expand Down
21 changes: 9 additions & 12 deletions ros2_control_demo_bringup/launch/rrbot_base.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def generate_launch_description():
)
declared_arguments.append(
DeclareLaunchArgument(
"use_sim",
"use_gazebo",
default_value="false",
description="Start robot in Gazebo simulation.",
)
Expand All @@ -87,7 +87,7 @@ def generate_launch_description():
)
declared_arguments.append(
DeclareLaunchArgument(
"fake_sensor_commands",
"mock_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
Expand Down Expand Up @@ -128,9 +128,9 @@ def generate_launch_description():
description_package = LaunchConfiguration("description_package")
description_file = LaunchConfiguration("description_file")
prefix = LaunchConfiguration("prefix")
use_sim = LaunchConfiguration("use_sim")
use_gazebo = LaunchConfiguration("use_gazebo")
use_fake_hardware = LaunchConfiguration("use_fake_hardware")
fake_sensor_commands = LaunchConfiguration("fake_sensor_commands")
mock_sensor_commands = LaunchConfiguration("mock_sensor_commands")
slowdown = LaunchConfiguration("slowdown")
controller_manager_name = LaunchConfiguration("controller_manager_name")
robot_controller = LaunchConfiguration("robot_controller")
Expand All @@ -148,14 +148,14 @@ def generate_launch_description():
"prefix:=",
prefix,
" ",
"use_sim:=",
use_sim,
"use_gazebo:=",
use_gazebo,
" ",
"use_fake_hardware:=",
use_fake_hardware,
" ",
"fake_sensor_commands:=",
fake_sensor_commands,
"mock_sensor_commands:=",
mock_sensor_commands,
" ",
"slowdown:=",
slowdown,
Expand All @@ -179,10 +179,7 @@ def generate_launch_description():
executable="ros2_control_node",
namespace=namespace,
parameters=[robot_description, robot_controllers],
output={
"stdout": "screen",
"stderr": "screen",
},
output="both",
)
robot_state_pub_node = Node(
package="robot_state_publisher",
Expand Down
2 changes: 1 addition & 1 deletion ros2_control_demo_bringup/launch/rrbot_namespace.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def generate_launch_description():
"position_trajectory_controller",
"-c",
"/rrbot/controller_manager",
"--stopped",
"--inactive",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def generate_launch_description():
"description_file": "rrbot_system_multi_interface.urdf.xacro",
"prefix": prefix,
"use_fake_hardware": "false",
"fake_sensor_commands": "false",
"mock_sensor_commands": "false",
"slowdown": slowdown,
"robot_controller": robot_controller,
}.items(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def generate_launch_description():
)
declared_arguments.append(
DeclareLaunchArgument(
"fake_sensor_commands",
"mock_sensor_commands",
default_value="false",
description="Enable fake command interfaces for sensors used for simple simulations. \
Used only if 'use_fake_hardware' parameter is true.",
Expand Down Expand Up @@ -68,7 +68,7 @@ def generate_launch_description():
# Initialize Arguments
prefix = LaunchConfiguration("prefix")
use_fake_hardware = LaunchConfiguration("use_fake_hardware")
fake_sensor_commands = LaunchConfiguration("fake_sensor_commands")
mock_sensor_commands = LaunchConfiguration("mock_sensor_commands")
slowdown = LaunchConfiguration("slowdown")
robot_controller = LaunchConfiguration("robot_controller")
start_rviz = LaunchConfiguration("start_rviz")
Expand All @@ -79,7 +79,7 @@ def generate_launch_description():
"description_file": "rrbot_system_position_only.urdf.xacro",
"prefix": prefix,
"use_fake_hardware": use_fake_hardware,
"fake_sensor_commands": fake_sensor_commands,
"mock_sensor_commands": mock_sensor_commands,
"slowdown": slowdown,
"robot_controller": robot_controller,
"start_rviz": start_rviz,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def generate_launch_description():
"rrbot_system_position_only.urdf.xacro",
]
),
" use_sim:=true",
" use_gazebo:=true",
]
)
robot_description = {"robot_description": robot_description_content}
Expand Down
Loading
Loading