NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
#include <gflags/gflags.h>
#include <gflags/gflags_completions.h>
#include <ros/ros.h>
#include <tf2_ros/transform_listener.h>
#include <ff_msgs/AckCompletedStatus.h>
#include <ff_msgs/AckStamped.h>
#include <ff_msgs/AckStatus.h>
#include <ff_msgs/AgentStateStamped.h>
#include <ff_msgs/CommandArg.h>
#include <ff_msgs/CommandConstants.h>
#include <ff_msgs/CommandStamped.h>
#include <ff_msgs/DockAction.h>
#include <ff_msgs/DockState.h>
#include <ff_msgs/FaultState.h>
#include <ff_msgs/MotionAction.h>
#include <ff_msgs/PerchState.h>
#include <ff_util/ff_flight.h>
#include <ff_common/ff_names.h>
Functions | |
DEFINE_bool (dock, false, "Send dock command") | |
DEFINE_bool (get_face_forward, false, "Get face forward mode") | |
DEFINE_bool (get_faults, false, "Get current faults") | |
DEFINE_bool (get_op_limits, false, "Get operating limits") | |
DEFINE_bool (get_planner, false, "Get current planner") | |
DEFINE_bool (get_pose, false, "Get current robot position") | |
DEFINE_bool (get_state, false, "Get current robot state") | |
DEFINE_bool (move, false, "Send move command") | |
DEFINE_bool (set_op_limits, false, "Send set operating limits") | |
DEFINE_bool (stop, false, "Send stop command") | |
DEFINE_bool (undock, false, "Send undock command") | |
DEFINE_bool (relative, false, "Position is relative to current point") | |
DEFINE_bool (reset_bias, false, "Send initialize bias command") | |
DEFINE_bool (reset_ekf, false, "Send reset ekf command") | |
DEFINE_bool (remote, false, "Whether target command is remote robot") | |
DEFINE_double (accel, -1.0, "Desired acceleration") | |
DEFINE_double (alpha, -1.0, "Desired angular acceleration") | |
DEFINE_double (omega, -1.0, "Desired angular velocity") | |
DEFINE_double (vel, -1.0, "Desired velocity") | |
DEFINE_double (collision_distance, -1.0, "Desired collision distance") | |
DEFINE_int32 (berth, 1, "Berth to dock in") | |
DEFINE_string (att, "", "Desired attitude in angle-axis format 'angle X Y Z'") | |
DEFINE_string (set_check_zones, "", "Enable keepout zone checking") | |
DEFINE_string (set_face_forward, "", "Plan in face-forward mode, on or off") | |
DEFINE_string (mode, "", "Flight mode") | |
DEFINE_string (ns, "", "Robot namespace") | |
DEFINE_string (set_planner, "", "Path planning algorithm") | |
DEFINE_string (pos, "", "Desired position in cartesian format 'X Y Z'") | |
bool | Finished () |
void | AgentStateCallback (ff_msgs::AgentStateStampedConstPtr const &state) |
void | FaultStateCallback (ff_msgs::FaultStateConstPtr const &state) |
bool | SendMobilityCommand () |
bool | SendResetBias () |
bool | SendResetEkf () |
bool | SendSetCheckZones () |
bool | SendSetFaceForward () |
bool | SendSetOpLimits () |
bool | SendSetPlanner () |
bool | SendNextCommand () |
void | AckCallback (ff_msgs::AckStampedConstPtr const &ack) |
void | MoveFeedbackCallback (ff_msgs::MotionActionFeedbackConstPtr const &fb) |
void | DockFeedbackCallback (ff_msgs::DockActionFeedbackConstPtr const &fb) |
int | main (int argc, char **argv) |
Variables | |
bool | get_face_forward |
bool | get_op_limits |
bool | get_planner |
bool | get_state |
bool | get_faults |
bool | reset_bias |
bool | reset_ekf |
bool | set_check_zones |
bool | set_face_forward |
bool | set_planner |
bool | set_op_limits |
bool | send_mob_command |
bool | mob_command_finished |
geometry_msgs::TransformStamped | tfs |
ros::Publisher | cmd_pub |
uint8_t | modeMove = 0 |
uint8_t | modeGetInfo = 0 |
void AckCallback | ( | ff_msgs::AckStampedConstPtr const & | ack | ) |
void AgentStateCallback | ( | ff_msgs::AgentStateStampedConstPtr const & | state | ) |
DEFINE_bool | ( | dock | , |
false | , | ||
"Send dock command" | |||
) |
DEFINE_bool | ( | get_face_forward | , |
false | , | ||
"Get face forward mode" | |||
) |
DEFINE_bool | ( | get_faults | , |
false | , | ||
"Get current faults" | |||
) |
DEFINE_bool | ( | get_op_limits | , |
false | , | ||
"Get operating limits" | |||
) |
DEFINE_bool | ( | get_planner | , |
false | , | ||
"Get current planner" | |||
) |
DEFINE_bool | ( | get_pose | , |
false | , | ||
"Get current robot position" | |||
) |
DEFINE_bool | ( | move | , |
false | , | ||
"Send move command" | |||
) |
DEFINE_bool | ( | relative | , |
false | , | ||
"Position is relative to current point" | |||
) |
DEFINE_bool | ( | remote | , |
false | , | ||
"Whether target command is remote robot" | |||
) |
DEFINE_bool | ( | reset_bias | , |
false | , | ||
"Send initialize bias command" | |||
) |
DEFINE_bool | ( | reset_ekf | , |
false | , | ||
"Send reset ekf command" | |||
) |
DEFINE_bool | ( | set_op_limits | , |
false | , | ||
"Send set operating limits" | |||
) |
DEFINE_bool | ( | stop | , |
false | , | ||
"Send stop command" | |||
) |
DEFINE_bool | ( | undock | , |
false | , | ||
"Send undock command" | |||
) |
DEFINE_double | ( | accel | , |
-1. | 0, | ||
"Desired acceleration" | |||
) |
DEFINE_double | ( | alpha | , |
-1. | 0, | ||
"Desired angular acceleration" | |||
) |
DEFINE_double | ( | collision_distance | , |
-1. | 0, | ||
"Desired collision distance" | |||
) |
DEFINE_double | ( | omega | , |
-1. | 0, | ||
"Desired angular velocity" | |||
) |
DEFINE_double | ( | vel | , |
-1. | 0, | ||
"Desired velocity" | |||
) |
DEFINE_int32 | ( | berth | , |
1 | , | ||
"Berth to dock in" | |||
) |
DEFINE_string | ( | att | , |
"" | , | ||
"Desired attitude in angle-axis format 'angle X Y Z'" | |||
) |
DEFINE_string | ( | ns | , |
"" | , | ||
"Robot namespace" | |||
) |
DEFINE_string | ( | pos | , |
"" | , | ||
"Desired position in cartesian format 'X Y Z'" | |||
) |
DEFINE_string | ( | set_check_zones | , |
"" | , | ||
"Enable keepout zone checking" | |||
) |
DEFINE_string | ( | set_face_forward | , |
"" | , | ||
"Plan in face-forward | mode, | ||
on or off" | |||
) |
DEFINE_string | ( | set_planner | , |
"" | , | ||
"Path planning algorithm" | |||
) |
void DockFeedbackCallback | ( | ff_msgs::DockActionFeedbackConstPtr const & | fb | ) |
void FaultStateCallback | ( | ff_msgs::FaultStateConstPtr const & | state | ) |
bool Finished | ( | ) |
int main | ( | int | argc, |
char ** | argv | ||
) |
void MoveFeedbackCallback | ( | ff_msgs::MotionActionFeedbackConstPtr const & | fb | ) |
bool SendMobilityCommand | ( | ) |
bool SendNextCommand | ( | ) |
bool SendResetBias | ( | ) |
bool SendResetEkf | ( | ) |
bool SendSetCheckZones | ( | ) |
bool SendSetFaceForward | ( | ) |
bool SendSetOpLimits | ( | ) |
bool SendSetPlanner | ( | ) |
ros::Publisher cmd_pub |
bool get_face_forward |
bool get_faults |
bool get_op_limits |
bool get_planner |
bool get_state |
bool mob_command_finished |
uint8_t modeGetInfo = 0 |
uint8_t modeMove = 0 |
bool reset_bias |
bool reset_ekf |
bool send_mob_command |
bool set_check_zones |
bool set_face_forward |
bool set_op_limits |
bool set_planner |
geometry_msgs::TransformStamped tfs |