rm_control
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rm_hw::RmRobotHWLoop Class Reference

#include <control_loop.h>

Public Member Functions

 RmRobotHWLoop (ros::NodeHandle &nh, std::shared_ptr< RmRobotHW > hardware_interface)
 Create controller manager. Load loop frequency. Start control loop which call rm_hw::RmRobotHWLoop::update() in a frequency.
 
 ~RmRobotHWLoop ()
 
void update ()
 Timed method that reads current hardware's state, runs the controller code once and sends the new commands to the hardware.
 

Constructor & Destructor Documentation

◆ RmRobotHWLoop()

rm_hw::RmRobotHWLoop::RmRobotHWLoop ( ros::NodeHandle & nh,
std::shared_ptr< RmRobotHW > hardware_interface )

Create controller manager. Load loop frequency. Start control loop which call rm_hw::RmRobotHWLoop::update() in a frequency.

Parameters
nhNode-handle of a ROS node.
hardware_interfaceA pointer which point to hardware_interface.

◆ ~RmRobotHWLoop()

rm_hw::RmRobotHWLoop::~RmRobotHWLoop ( )

Member Function Documentation

◆ update()

void rm_hw::RmRobotHWLoop::update ( )

Timed method that reads current hardware's state, runs the controller code once and sends the new commands to the hardware.

Timed method that reads current hardware's state, runs the controller code once and sends the new commands to the hardware.

Note: we do not use the TimerEvent time difference because it does NOT guarantee that the time source is strictly linearly increasing.


The documentation for this class was generated from the following files: