-
Notifications
You must be signed in to change notification settings - Fork 259
Add first example robot (rrbot as system) #37
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
Merged
Merged
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
f0d7186
Implementation of RRBot System Headless Hardware with only position j…
destogl 773d0c3
rrbot system position only after first testing.
destogl 89dbaef
Added description of rrbot and example ros2_control_manager.
destogl e6c9fbf
ROS2 Managers are moved to controller_interface package
destogl c0e60ab
Update README.md
destogl f6fddee
Add controlle to example 1 and adapt the hardware to provide more sen…
destogl 8336c52
Merge branch 'add_rrbot_system_position_joints' of https://github.com…
destogl bb0d4c3
Added controller to install path
destogl 4edaf31
Change parameter names because deprecated
destogl 87bf1fe
Reorganize controller's yaml to have correct parameters' namespace. C…
destogl 8eec4e0
Corrected licence header and add explicit type instead of auto
destogl 81f6551
Update README.md
destogl ccfb6e5
Update parameter and launch
destogl ec0f715
Merge branch 'add_rrbot_system_position_joints' of https://github.com…
destogl de05e13
Update README.md
destogl 75f5625
Reorganize to new RM structure
destogl 79c6323
Merge branch 'add_rrbot_system_position_joints' of https://github.com…
destogl c8935f0
Update README.md
destogl 0cb4877
Updated to new status
destogl 1e7fbb6
Adapt brances and additional output
destogl 7b818d3
Merge branch 'add_rrbot_system_position_joints' of https://github.com…
destogl f44d20b
Add parsing robot_description via xacro. (#45)
livanov93 84def18
Merge branch 'master' into add_rrbot_system_position_joints
destogl 01b428b
Remove URDF file
destogl 8fe9b66
Merge branch 'add_rrbot_system_position_joints' of https://github.com…
destogl 382bc1c
Update description
destogl bfeeeee
Update linters.yaml
destogl 4f0ddb1
Update ci.yml
destogl 5ba9659
Add dependencies
destogl 5f68b67
Update ci.yml
destogl f18145a
Update CMakeLists.txt
destogl ea5be37
Update package.xml
destogl 9f4a384
Delete code_coverage.yml
destogl b630ceb
Update ci.yml
destogl c69b80f
Update ci.yml
destogl 881c06a
Update linters.yaml
destogl 9cca40b
Update linters.yaml
destogl cd977b2
Update ros2_control_demo_hardware/include/ros2_control_demo_hardware/…
destogl 635ed68
Update ros2_control_demo_hardware/src/rrbot_system_position_only.cpp
destogl 732a3bc
Address review comments.
destogl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,14 +9,49 @@ on: | |
| - cron: '28 6 * * *' | ||
|
|
||
| jobs: | ||
| industrial_ci: | ||
| ci_binary: | ||
| name: Foxy binary job | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| env: | ||
| - {ROS_DISTRO: foxy, ROS_REPO: testing} | ||
| - {ROS_DISTRO: foxy, ROS_REPO: main} | ||
| runs-on: ubuntu-latest | ||
| - {ROS_DISTRO: foxy, ROS_REPO: testing} | ||
| env: | ||
| UPSTREAM_WORKSPACE: ros2_control_demos/ros2_control_demos.repos | ||
| steps: | ||
| - run: sudo apt-get update -qq && sudo apt-get upgrade | ||
| - uses: actions/checkout@v1 | ||
| - uses: 'ros-industrial/industrial_ci@master' | ||
| env: ${{matrix.env}} | ||
|
|
||
| ci_source: | ||
| name: Foxy source job | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| fail-fast: false | ||
| steps: | ||
| - uses: ros-tooling/[email protected] | ||
| with: | ||
| required-ros-distributions: foxy | ||
| - uses: ros-tooling/[email protected] | ||
| with: | ||
| target-ros2-distro: foxy | ||
| # build all packages listed in the meta package | ||
| package-name: | ||
| ros2_control_demo_hardware | ||
| ros2_control_demo_robot | ||
| ros2_control_demos | ||
| vcs-repo-file-url: | | ||
| https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_control_demos/ros2_control_demos.repos | ||
| colcon-mixin-name: coverage-gcc | ||
| colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
| - uses: codecov/[email protected] | ||
| with: | ||
| file: ros_ws/lcov/total_coverage.info | ||
| flags: unittests | ||
| name: codecov-umbrella | ||
| - uses: actions/upload-artifact@v1 | ||
| with: | ||
| name: colcon-logs-${{ matrix.os }} | ||
| path: ros_ws/log | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,35 @@ | ||
| name: Linters | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| ament_copyright: | ||
| name: ament_copyright | ||
| runs-on: ubuntu-18.04 | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: ros-tooling/[email protected].13 | ||
| - uses: ros-tooling/[email protected].5 | ||
| - uses: ros-tooling/[email protected].26 | ||
| - uses: ros-tooling/[email protected].6 | ||
| with: | ||
| linter: copyright | ||
| package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot | ||
| package-name: | ||
| ros2_control_demo_hardware | ||
| ros2_control_demo_robot | ||
| ros2_control_demos | ||
|
|
||
| ament_xmllint: | ||
| name: ament_xmllint | ||
| runs-on: ubuntu-18.04 | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: ros-tooling/[email protected].13 | ||
| - uses: ros-tooling/[email protected].5 | ||
| - uses: ros-tooling/[email protected].26 | ||
| - uses: ros-tooling/[email protected].6 | ||
| with: | ||
| linter: xmllint | ||
| package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot | ||
| package-name: | ||
| ros2_control_demo_hardware | ||
| ros2_control_demo_robot | ||
| ros2_control_demos | ||
|
|
||
| ament_lint_cpp: | ||
| name: ament_${{ matrix.linter }} | ||
|
|
@@ -37,8 +40,11 @@ jobs: | |
| linter: [cppcheck, cpplint, uncrustify] | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: ros-tooling/[email protected].13 | ||
| - uses: ros-tooling/[email protected].5 | ||
| - uses: ros-tooling/[email protected].26 | ||
| - uses: ros-tooling/[email protected].6 | ||
| with: | ||
| linter: ${{ matrix.linter }} | ||
| package-name: ros2_control_demo_communication_gazebo ros2_control_demo_communication_headless ros2_control_demo_hardware ros2_control_demo_robot | ||
| package-name: | ||
| ros2_control_demo_hardware | ||
| ros2_control_demo_robot | ||
| ros2_control_demos | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
ros2_control_demo_hardware/include/ros2_control_demo_hardware/rrbot_system_position_only.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| // Copyright 2020 ROS2-Control Development Team | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
|
|
||
| #ifndef ROS2_CONTROL_DEMO_HARDWARE__RRBOT_SYSTEM_POSITION_ONLY_HPP_ | ||
| #define ROS2_CONTROL_DEMO_HARDWARE__RRBOT_SYSTEM_POSITION_ONLY_HPP_ | ||
|
|
||
| #include <memory> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| #include "rclcpp/macros.hpp" | ||
|
|
||
| #include "hardware_interface/components/base_interface.hpp" | ||
| #include "hardware_interface/components/system_interface.hpp" | ||
| #include "hardware_interface/handle.hpp" | ||
| #include "hardware_interface/hardware_info.hpp" | ||
| #include "hardware_interface/types/hardware_interface_return_values.hpp" | ||
| #include "hardware_interface/types/hardware_interface_status_values.hpp" | ||
| #include "ros2_control_demo_hardware/visibility_control.h" | ||
destogl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| using hardware_interface::return_type; | ||
|
|
||
| namespace ros2_control_demo_hardware | ||
| { | ||
| class RRBotSystemPositionOnlyHardware : public | ||
| hardware_interface::components::BaseInterface<hardware_interface::components::SystemInterface> | ||
| { | ||
| public: | ||
| RCLCPP_SHARED_PTR_DEFINITIONS(RRBotSystemPositionOnlyHardware); | ||
|
|
||
| return_type configure(const hardware_interface::HardwareInfo & info) override; | ||
|
|
||
| std::vector<hardware_interface::StateInterface> export_state_interfaces() override; | ||
|
|
||
| std::vector<hardware_interface::CommandInterface> export_command_interfaces() override; | ||
|
|
||
| return_type start() override; | ||
|
|
||
| return_type stop() override; | ||
|
|
||
| return_type read() override; | ||
|
|
||
| return_type write() override; | ||
|
|
||
| private: | ||
| // Dummy parameters | ||
| double hw_start_sec_, hw_stop_sec_, hw_slowdown_; | ||
destogl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // Store the command for the simulated robot | ||
| std::vector<double> hw_commands_, hw_states_; | ||
destogl marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }; | ||
|
|
||
| } // namespace ros2_control_demo_hardware | ||
|
|
||
| #endif // ROS2_CONTROL_DEMO_HARDWARE__RRBOT_SYSTEM_POSITION_ONLY_HPP_ | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.