diux/src/subscriberTest.cpp
//---------------------------------------------SUBSCRIBING TO DDS MESSAGES---------------------------------------------//
//subscribes to a DDS thread, recieves a message, and calls a mavlink send function
//---------------------------------------------------------------------------------------------------------------------//
SUBSCRIBING TO DDS MESSAGES
subscribes to a DDS thread, recieves a message, and calls a mavlink send function
SUBSCRIBING TO DDS MESSAGES subscribes to a DDS thread recieves a message and calls a mavlink send function
void subscriberTest::GlobalPoseStatusTypeCallback(const diux_msgs::msg::GlobalPoseStatusType::SharedPtr msg)
{
  cout<<"Latitude: \t";
  cout << msg->position.geodetic_position.geodetic_latitude.latitude << std::endl;
  cout<<"Longitude: \t";
  cout<<msg->position.geodetic_position.geodetic_longitude.longitude << std::endl; 
}
void subscriberTest :: GlobalPoseStatusTypeCallback ( const diux_msgs :: msg :: GlobalPoseStatusType :: SharedPtr msg ) { cout << " \t " ; cout << msg -> position . geodetic_position . geodetic_latitude . latitude << std :: endl ; cout << " \t " ; cout << msg -> position . geodetic_position . geodetic_longitude . longitude << std :: endl ; }
SUBSCRIBING TO DDS MESSAGES
subscribes to a DDS thread, recieves a message, and calls a mavlink send function
SUBSCRIBING TO DDS MESSAGES subscribes to a DDS thread recieves a message and calls a mavlink send function