ros2_rover
Loading...
Searching...
No Matches
MotorsCommandParserNode Class Reference

#include <motors_command_parser_node.hpp>

Inheritance diagram for MotorsCommandParserNode:
Collaboration diagram for MotorsCommandParserNode:

Public Member Functions

 MotorsCommandParserNode ()
 
void callback (const rover_msgs::msg::MotorsCommand::SharedPtr msg)
 
int clamp (int range_min, int range_max, int value)
 
float normalize (int range_min, int range_max, int value)
 

Private Attributes

rclcpp::Subscription< rover_msgs::msg::MotorsCommand >::SharedPtr subscription
 
rclcpp::Publisher< std_msgs::msg::Float64MultiArray >::SharedPtr velocity_publisher
 
rclcpp::Publisher< std_msgs::msg::Float64MultiArray >::SharedPtr position_publisher
 

Constructor & Destructor Documentation

◆ MotorsCommandParserNode()

MotorsCommandParserNode::MotorsCommandParserNode ( )

Member Function Documentation

◆ callback()

void MotorsCommandParserNode::callback ( const rover_msgs::msg::MotorsCommand::SharedPtr msg)

◆ clamp()

int MotorsCommandParserNode::clamp ( int range_min,
int range_max,
int value )

◆ normalize()

float MotorsCommandParserNode::normalize ( int range_min,
int range_max,
int value )

Member Data Documentation

◆ position_publisher

rclcpp::Publisher<std_msgs::msg::Float64MultiArray>::SharedPtr MotorsCommandParserNode::position_publisher
private

◆ subscription

rclcpp::Subscription<rover_msgs::msg::MotorsCommand>::SharedPtr MotorsCommandParserNode::subscription
private

◆ velocity_publisher

rclcpp::Publisher<std_msgs::msg::Float64MultiArray>::SharedPtr MotorsCommandParserNode::velocity_publisher
private

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