36 #ifndef CAMERA_COMMANDER__CAMERA_COMMANDER_H_ 37 #define CAMERA_COMMANDER__CAMERA_COMMANDER_H_ 39 #include <hfl_driver/HFLConfig.h> 42 #include <dynamic_reconfigure/server.h> 49 #include "udp_com/UdpPacket.h" 50 #include "udp_com/UdpSend.h" 51 #include "udp_com/UdpSocket.h" 116 bool createSocket(std::string computerAddr, std::string cameraAddr,
117 uint16_t port,
bool isMulticast);
187 std::shared_ptr<hfl::HflInterface>
flash_;
274 bool sendCommand(
const std::vector<uint8_t>& data);
303 #endif // CAMERA_COMMANDER__CAMERA_COMMANDER_H_ ros::NodeHandle node_handler_
Node Handle.
ros::Subscriber tele_data_subscriber_
UDP Telemetry Data Subscriber.
void teleDataCallback(const udp_com::UdpPacket &udp_packet)
void objectDataCallback(const udp_com::UdpPacket &udp_packet)
error_codes checkForError()
error_codes error_status_
Error Status.
ros::Subscriber object_data_subscriber_
UDP Object Data Subscriber.
void pdmDataCallback(const udp_com::UdpPacket &udp_packet)
std::string namespace_
Namespace.
ros::Timer timer_
Status checker timer.
ros::Subscriber frame_data_subscriber_
UDP Frame Data subscriber.
This file defines the HFL camera's interface class.
commander_states
Commander states enum.
ros::Subscriber slice_data_subscriber_
UDP Slice Data Subscriber.
int frame_data_port_
Frame Data UDP port.
int slice_data_port_
Slice Data UDP port.
void sliceDataCallback(const udp_com::UdpPacket &udp_packet)
bool sendCommand(const std::vector< uint8_t > &data)
int tele_data_port_
Telemetry Data UDP port.
commander_states previous_state_
Commander Previous state prior to error.
bool fixError(error_codes error)
void frameDataCallback(const udp_com::UdpPacket &udp_packet)
commander_states current_state_
Commander current state.
std::string camera_address_
IP Address of sensor.
ros::Subscriber pdm_data_subscriber_
UDP PDM Data Subscriber.
std::string ethernet_interface_
Ethernet Interface.
std::shared_ptr< dynamic_reconfigure::Server< hfl_driver::HFLConfig > > dynamic_parameters_server_
Dynamic Reconfigure server.
int pdm_data_port_
PDM Data UDP port.
bool createSocket(std::string computerAddr, std::string cameraAddr, uint16_t port, bool isMulticast)
std::string computer_address_
IP Address of computer.
ros::ServiceClient udp_socket_creation_service_client_
UDP socket service client.
void setCommanderState(const ros::TimerEvent &timer_event)
ros::ServiceClient udp_send_service_client_
UDP send service client.
int object_data_port_
Object Data UDP port.
void dynamicPametersCallback(hfl_driver::HFLConfig &config, uint32_t level)
std::shared_ptr< hfl::HflInterface > flash_
Pointer to Flash camera.
Implements the camera configuration and setup.