Skip to content

pvandervelde/zinger_controller_test_nodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zinger_controller_test_nodes

This package contains test nodes to verify that the ROS2 controllers for zinger are working. There are test nodes for:

  • The steering controllers for all four wheels of the zinger robot: steering_controller.py. This verifies that the steering angle for the four drive modules can be changed.
  • The drive controller for all four wheels of the zinger robot: drive_controller.py. This verifies that the wheel rotation speed for the four drive modules can be changed.

Dependencies

The configurations in this repository assume you have the following prerequisites installed on the device on which you want to run this code. That device might be an Ubuntu machine or a physical robot using Raspberry Pi OS.

  • zinger_description - Contains the geometric description of the zinger robot for ROS to work with.

Contents

This repository contains different folders for the different parts of the robot description.

  • The config files that provide the configurations for the ROS control actuators and the test publishers
  • The launch directory contains the launch files
  • The source code for the controllers can be found in the zinger_controller_test_nodes directory
    • The steering_controller.py defines a ROS2 controller that controls the steering angle of the drive modules using the JointGroupPositionController.
    • The drive_controller.py defines a ROS2 controller that controls the wheel rotation velocity of the drive modules using the JointGroupVelocityController.

Usage

To start the steering controller use the following command line

ros2 launch zinger_controller_test_nodes steering_controller.launch.py

To start the drive controller use the following command line

ros2 launch zinger_controller_test_nodes drive_controller.launch.py

When simulating the zinger robot in Gazebo add the use_sim_time:=true parameter to the command lines.

About

Contains test nodes to verify that the ROS2 controllers for tblaze are working

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages