Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Reproduced current status of gazebo_ros2_control  #3

@ahcorde

Description

@ahcorde

I have created two PRs where I have added:

The ROS 2 distro used for this tutorial is Foxy

Run the demos:

mkdir -p ~/ros2_control_ws/src 
cd ~/ros2_control_ws/src
git clone https://github.com/ros-simulation/gazebo_ros2_control/ -b ahcorde/test
git clone https://github.com/ros/xacro -b dashing-devel
git clone https://github.com/ros-simulation/gazebo_ros_pkgs -b ros2
git clone https://github.com/ros-controls/realtime_tools -b ros2_devel
git clone https://github.com/ros-controls/ros2_control
git clone https://github.com/ros-controls/ros2_controllers
git clone https://github.com/ddengster/ros2_control/ -b coffeebot_deps ros2_control_ddengster
touch ros2_control_ddengster/COLCON_IGNORE
cp -r ros2_control_ddengster/joint_limits_interface ros2_control_ddengster/transmission_interface  ros2_control
cd ~/ros2_control_ws
colcon build --merge-install

Running the examples

I created two examples: hardware_interface/PositionJointInterface and hardware_interface/VelocityJointInterface. I only made it work the PositionJointInterface example

Launch the Gazebo classic world with the gazebo_ros2_plugin

ros2 launch gazebo_ros2_control_demos cart_example_position.launch.py

Call the action follow_joint_trajectories:

ros2 run gazebo_ros2_control_demos example_position

Check /joint_states or /state

ros2 topic echo /joint_states
ros2 topic echo /state

positionController

Dependencies

  • xacro
  • gazebo_ros_pkgs
  • ros2_control
  • ros2_controllers
  • realtime_tools

@chapulina @Karsten1987 @ddengster

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions