|
ASCO Aerial Autonomy
|
Base Test fixture class for reducing code redundancy in system handler tests. More...
#include <test_utils.h>
Public Member Functions | |
| BaseTestPubSubs () | |
| Constructor. More... | |
| void | publishEvent (std::string event) |
| Helper function to publish specified event specified. More... | |
| void | publishPoseCommand (PositionYaw position_yaw) |
| Helper function to publish specified position_yaw command. More... | |
| PositionYaw | getPositionYaw (parsernode::common::quaddata quad_data) |
| Helper function to return position and yaw from UAV data. More... | |
| bool | isStatusConnected () |
| Helper function to check if status subscriber to connected UAV status publisher. More... | |
Protected Member Functions | |
| void | statusCallback (std_msgs::String status) |
| Callback to set the status received from UAV. More... | |
Protected Attributes | |
| std::string | status_ |
| ros::NodeHandle | nh_send_ |
| Send events. More... | |
| ros::NodeHandle | nh_receive_status_ |
| Receive status. More... | |
| ros::Publisher | event_pub_ |
| Event publisher. More... | |
| ros::Publisher | pose_pub_ |
| Pose command publisher. More... | |
| ros::Subscriber | status_subscriber_ |
| System status subscriber. More... | |
Base Test fixture class for reducing code redundancy in system handler tests.
|
inline |
Constructor.
Initializes event, pose publishers, and system status subscriber
|
inline |
Helper function to return position and yaw from UAV data.
| quad_data | UAV data returned by uav system |
|
inline |
Helper function to check if status subscriber to connected UAV status publisher.
|
inline |
Helper function to publish specified event specified.
| event | Event to publish |
|
inline |
Helper function to publish specified position_yaw command.
| position_yaw | position and yaw to publish |
|
inlineprotected |
Callback to set the status received from UAV.
| status | Text status received from UAV |
|
protected |
Event publisher.
|
protected |
Receive status.
|
protected |
Send events.
|
protected |
Pose command publisher.
|
protected |
|
protected |
System status subscriber.
1.8.6