Public Member Functions | Private Attributes | List of all members
rotors_hil::HilInterfaceNode Class Reference

#include <hil_interface_node.h>

Public Member Functions

void HilControlsCallback (const mavros_msgs::HilControlsConstPtr &hil_controls_msg)
 Callback for handling HilControls messages. More...
 
 HilInterfaceNode ()
 
void MainTask ()
 Main execution loop. More...
 
virtual ~HilInterfaceNode ()
 

Private Attributes

ros::Publisher actuators_pub_
 ROS publisher for sending actuator commands. More...
 
ros::Subscriber hil_controls_sub_
 ROS subscriber for handling HilControls messages. More...
 
std::unique_ptr< HilInterfacehil_interface_
 Pointer to the HIL interface object. More...
 
ros::Publisher mavlink_pub_
 ROS publisher for sending MAVLINK messages. More...
 
ros::NodeHandle nh_
 ROS node handle. More...
 
ros::Rate rate_
 Object for spinning. More...
 

Detailed Description

Definition at line 34 of file hil_interface_node.h.

Constructor & Destructor Documentation

◆ HilInterfaceNode()

rotors_hil::HilInterfaceNode::HilInterfaceNode ( )

Definition at line 21 of file hil_interface_node.cpp.

◆ ~HilInterfaceNode()

rotors_hil::HilInterfaceNode::~HilInterfaceNode ( )
virtual

Definition at line 63 of file hil_interface_node.cpp.

Member Function Documentation

◆ HilControlsCallback()

void rotors_hil::HilInterfaceNode::HilControlsCallback ( const mavros_msgs::HilControlsConstPtr &  hil_controls_msg)

Callback for handling HilControls messages.

Parameters
[in]hil_controls_msgA HilControls message.

Definition at line 80 of file hil_interface_node.cpp.

◆ MainTask()

void rotors_hil::HilInterfaceNode::MainTask ( )

Main execution loop.

Definition at line 66 of file hil_interface_node.cpp.

Member Data Documentation

◆ actuators_pub_

ros::Publisher rotors_hil::HilInterfaceNode::actuators_pub_
private

ROS publisher for sending actuator commands.

Definition at line 51 of file hil_interface_node.h.

◆ hil_controls_sub_

ros::Subscriber rotors_hil::HilInterfaceNode::hil_controls_sub_
private

ROS subscriber for handling HilControls messages.

Definition at line 57 of file hil_interface_node.h.

◆ hil_interface_

std::unique_ptr<HilInterface> rotors_hil::HilInterfaceNode::hil_interface_
private

Pointer to the HIL interface object.

Definition at line 63 of file hil_interface_node.h.

◆ mavlink_pub_

ros::Publisher rotors_hil::HilInterfaceNode::mavlink_pub_
private

ROS publisher for sending MAVLINK messages.

Definition at line 54 of file hil_interface_node.h.

◆ nh_

ros::NodeHandle rotors_hil::HilInterfaceNode::nh_
private

ROS node handle.

Definition at line 48 of file hil_interface_node.h.

◆ rate_

ros::Rate rotors_hil::HilInterfaceNode::rate_
private

Object for spinning.

Definition at line 60 of file hil_interface_node.h.


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


rotors_hil_interface
Author(s): Pavel Vechersky
autogenerated on Mon Feb 28 2022 23:39:15