#include <pacmod3_ros_msg_handler.h>
#include <signal.h>
#include <queue>
#include <thread>
#include <unistd.h>
#include <time.h>
#include <map>
#include <unordered_map>
#include <tuple>
#include <std_msgs/Bool.h>
#include <std_msgs/Float64.h>
#include <can_msgs/Frame.h>
Go to the source code of this file.
void callback_accel_cmd_sub | ( | const pacmod_msgs::SystemCmdFloat::ConstPtr & | msg | ) |
Definition at line 138 of file pacmod3_node.cpp.
void callback_brake_cmd_sub | ( | const pacmod_msgs::SystemCmdFloat::ConstPtr & | msg | ) |
Definition at line 144 of file pacmod3_node.cpp.
void callback_cruise_control_buttons_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 149 of file pacmod3_node.cpp.
void callback_dash_controls_left_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 154 of file pacmod3_node.cpp.
void callback_dash_controls_right_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 159 of file pacmod3_node.cpp.
void callback_headlight_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 165 of file pacmod3_node.cpp.
void callback_horn_set_cmd | ( | const pacmod_msgs::SystemCmdBool::ConstPtr & | msg | ) |
Definition at line 171 of file pacmod3_node.cpp.
void callback_media_controls_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 176 of file pacmod3_node.cpp.
void callback_shift_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 182 of file pacmod3_node.cpp.
void callback_steer_cmd_sub | ( | const pacmod_msgs::SteerSystemCmd::ConstPtr & | msg | ) |
Definition at line 188 of file pacmod3_node.cpp.
void callback_turn_signal_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 200 of file pacmod3_node.cpp.
void callback_wiper_set_cmd | ( | const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ) |
Definition at line 206 of file pacmod3_node.cpp.
void can_read | ( | const can_msgs::Frame::ConstPtr & | msg | ) |
Definition at line 259 of file pacmod3_node.cpp.
void can_write | ( | ) |
Definition at line 226 of file pacmod3_node.cpp.
void lookup_and_encode | ( | const int64_t & | can_id, |
const pacmod_msgs::SystemCmdBool::ConstPtr & | msg | ||
) |
Definition at line 107 of file pacmod3_node.cpp.
void lookup_and_encode | ( | const int64_t & | can_id, |
const pacmod_msgs::SystemCmdInt::ConstPtr & | msg | ||
) |
Definition at line 117 of file pacmod3_node.cpp.
void lookup_and_encode | ( | const int64_t & | can_id, |
const pacmod_msgs::SystemCmdFloat::ConstPtr & | msg | ||
) |
Definition at line 127 of file pacmod3_node.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 307 of file pacmod3_node.cpp.
void send_can | ( | long | id, |
const std::vector< unsigned char > & | vec | ||
) |
Definition at line 211 of file pacmod3_node.cpp.
void set_enable | ( | bool | val | ) |
Definition at line 88 of file pacmod3_node.cpp.
Definition at line 74 of file pacmod3_node.cpp.
Definition at line 67 of file pacmod3_node.cpp.
Definition at line 79 of file pacmod3_node.cpp.
Definition at line 75 of file pacmod3_node.cpp.
Definition at line 51 of file pacmod3_node.cpp.
Definition at line 52 of file pacmod3_node.cpp.
Definition at line 53 of file pacmod3_node.cpp.
Definition at line 69 of file pacmod3_node.cpp.
Definition at line 73 of file pacmod3_node.cpp.
Definition at line 30 of file pacmod3_node.cpp.
Definition at line 31 of file pacmod3_node.cpp.
Definition at line 32 of file pacmod3_node.cpp.
Definition at line 45 of file pacmod3_node.cpp.
Definition at line 54 of file pacmod3_node.cpp.
Definition at line 59 of file pacmod3_node.cpp.
Definition at line 72 of file pacmod3_node.cpp.
bool global_keep_going = true |
Definition at line 84 of file pacmod3_node.cpp.
Definition at line 63 of file pacmod3_node.cpp.
Definition at line 27 of file pacmod3_node.cpp.
Definition at line 37 of file pacmod3_node.cpp.
Definition at line 36 of file pacmod3_node.cpp.
Definition at line 38 of file pacmod3_node.cpp.
Definition at line 58 of file pacmod3_node.cpp.
std::mutex keep_going_mut |
Definition at line 85 of file pacmod3_node.cpp.
Definition at line 44 of file pacmod3_node.cpp.
Definition at line 33 of file pacmod3_node.cpp.
Definition at line 57 of file pacmod3_node.cpp.
Definition at line 46 of file pacmod3_node.cpp.
std::unordered_map<int64_t, ros::Publisher> pub_tx_list |
Definition at line 26 of file pacmod3_node.cpp.
Definition at line 60 of file pacmod3_node.cpp.
std::unordered_map<long long, std::shared_ptr<LockedData> > rx_list |
Definition at line 81 of file pacmod3_node.cpp.
Definition at line 76 of file pacmod3_node.cpp.
Definition at line 66 of file pacmod3_node.cpp.
Definition at line 77 of file pacmod3_node.cpp.
Definition at line 68 of file pacmod3_node.cpp.
Definition at line 40 of file pacmod3_node.cpp.
Definition at line 41 of file pacmod3_node.cpp.
Definition at line 42 of file pacmod3_node.cpp.
Definition at line 43 of file pacmod3_node.cpp.
Definition at line 48 of file pacmod3_node.cpp.
Definition at line 49 of file pacmod3_node.cpp.
Definition at line 50 of file pacmod3_node.cpp.
std::map<long long, std::tuple<bool, bool, bool> > system_statuses |
Definition at line 82 of file pacmod3_node.cpp.
Definition at line 78 of file pacmod3_node.cpp.
Definition at line 65 of file pacmod3_node.cpp.
VehicleType veh_type = VehicleType::POLARIS_GEM |
Definition at line 25 of file pacmod3_node.cpp.
std::string veh_type_string = "POLARIS_GEM" |
Definition at line 24 of file pacmod3_node.cpp.
Definition at line 56 of file pacmod3_node.cpp.
Definition at line 55 of file pacmod3_node.cpp.
Definition at line 71 of file pacmod3_node.cpp.
Definition at line 70 of file pacmod3_node.cpp.
Definition at line 64 of file pacmod3_node.cpp.
Definition at line 39 of file pacmod3_node.cpp.
Definition at line 35 of file pacmod3_node.cpp.
Definition at line 34 of file pacmod3_node.cpp.
Definition at line 47 of file pacmod3_node.cpp.