Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
goby::middleware::tool::PublishToolApplication< ImplementationTag, PublishConfig > Class Template Reference

Application implementing "goby <impl> publish" for a given interprocess implementation. More...

#include <goby/middleware/tool/publish_subscribe_tool.h>

Inheritance diagram for goby::middleware::tool::PublishToolApplication< ImplementationTag, PublishConfig >:
goby::middleware::SingleThreadApplication< Config, InterProcessPortal > goby::middleware::ToolSharedLibraryLoader goby::middleware::Application< Config > goby::middleware::Thread< Config, InterVehicleForwarder< InterProcessPortal<> > > goby::middleware::coroner::Application< SingleThreadApplication< Config, InterProcessPortal > > goby::middleware::terminate::Application< Derived >

Public Member Functions

 PublishToolApplication ()
 
 ~PublishToolApplication () override=default
 
- Public Member Functions inherited from goby::middleware::SingleThreadApplication< Config, InterProcessPortal >
 SingleThreadApplication (double loop_freq_hertz=0)
 Construct the application calling loop() at the given frequency (double overload)
 
 SingleThreadApplication (boost::units::quantity< boost::units::si::frequency > loop_freq)
 Construct the application calling loop() at the given frequency (boost::units overload)
 
virtual ~SingleThreadApplication ()
 
- Public Member Functions inherited from goby::middleware::Application< Config >
 Application ()
 
virtual ~Application ()
 
- Public Member Functions inherited from goby::middleware::Thread< Config, InterVehicleForwarder< InterProcessPortal<> > >
 Thread (const Config &cfg, InterVehicleForwarder< InterProcessPortal<> > *transporter, int index)
 Construct a thread with a given configuration, underlying transporter, and index (for multiple instantiations), but without any loop() frequency.
 
 Thread (const Config &cfg, InterVehicleForwarder< InterProcessPortal<> > *transporter, double loop_freq_hertz=0, int index=-1)
 Construct a thread with all possible metadata (using double to specify frequency in Hertz)
 
 Thread (const Config &cfg, InterVehicleForwarder< InterProcessPortal<> > *transporter, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1)
 Construct a thread with all possible metadata (using boost::units to specify frequency)
 
virtual ~Thread ()
 
void run (std::atomic< bool > &alive)
 Run the thread until the boolean reference passed is set false. This call blocks, and should be run in a std::thread by the caller.
 
int index () const
 
std::type_index type_index ()
 
void set_type_index (std::type_index type_i)
 
std::string name ()
 
void set_name (const std::string &name)
 
int uid ()
 
void set_uid (int uid)
 
double loop_frequency_hertz () const
 
decltype(loop_frequency_) loop_frequency () const
 
void set_loop_frequency_hertz (double loop_freq_hertz)
 
void set_loop_frequency (boost::units::quantity< boost::units::si::frequency > loop_freq)
 
- Public Member Functions inherited from goby::middleware::ToolSharedLibraryLoader
 ToolSharedLibraryLoader (const std::vector< std::string > &load_libs)
 
 ToolSharedLibraryLoader (const google::protobuf::RepeatedPtrField< std::string > &load_libs)
 
 ToolSharedLibraryLoader (const std::string &lib)
 

Additional Inherited Members

- Public Types inherited from goby::middleware::Application< Config >
using ConfigType = Config
 
- Public Types inherited from goby::middleware::Thread< Config, InterVehicleForwarder< InterProcessPortal<> > >
using Transporter = InterVehicleForwarder< InterProcessPortal<> >
 
- Static Public Attributes inherited from goby::middleware::Thread< Config, InterVehicleForwarder< InterProcessPortal<> > >
static constexpr goby::middleware::Group shutdown_group_
 
static constexpr goby::middleware::Group joinable_group_
 
- Protected Member Functions inherited from goby::middleware::SingleThreadApplication< Config, InterProcessPortal >
InterProcessPortal & interprocess ()
 
InterVehicleForwarder< InterProcessPortal<> > & intervehicle ()
 
virtual void health (goby::middleware::protobuf::ThreadHealth &health) override
 Called when HealthRequest is made by goby_coroner.
 
virtual void post_initialize () override
 Assume all required subscriptions are done in the Constructor or in initialize(). If this isn't the case, this method can be overridden.
 
- Protected Member Functions inherited from goby::middleware::Application< Config >
virtual void pre_initialize ()
 Called just before initialize.
 
virtual void initialize ()
 Perform any initialize tasks that couldn't be done in the constructor.
 
virtual void pre_finalize ()
 Called just before finalize.
 
virtual void finalize ()
 Perform any final cleanup actions just before the destructor is called.
 
virtual void post_finalize ()
 Called just after finalize.
 
void quit (int return_value=0)
 Requests a clean exit.
 
const Config & app_cfg ()
 Accesses configuration object passed at launch.
 
const util::UTMGeodesy & geodesy ()
 Accesses the geodetic conversion tool if lat_origin and lon_origin were provided.
 
bool has_geodesy ()
 Returns if the geodesy tool is configured with a datum.
 
std::string app_name ()
 
bool app_alive ()
 
boost::units::quantity< boost::units::si::frequency > choose_loop_freq (boost::units::quantity< boost::units::si::frequency > compiled_loop_freq)
 
void configure_geodesy (goby::util::UTMGeodesy::LatLonPoint datum)
 
- Protected Member Functions inherited from goby::middleware::Thread< Config, InterVehicleForwarder< InterProcessPortal<> > >
 Thread (const Config &cfg, boost::units::quantity< boost::units::si::frequency > loop_freq, int index=-1)
 
void set_transporter (InterVehicleForwarder< InterProcessPortal<> > *transporter)
 
double loop_max_frequency () const
 
void run_once ()
 
InterVehicleForwarder< InterProcessPortal<> > & transporter () const
 
const Config & cfg () const
 
virtual void initialize ()
 
virtual void finalize ()
 
void thread_health (goby::middleware::protobuf::ThreadHealth &health)
 
void thread_quit ()
 
bool alive ()
 
- Protected Member Functions inherited from goby::middleware::coroner::Application< SingleThreadApplication< Config, InterProcessPortal > >
void subscribe_coroner ()
 
- Protected Member Functions inherited from goby::middleware::terminate::Application< Derived >
void subscribe_terminate (bool do_quit=true)
 

Detailed Description

template<typename ImplementationTag, typename PublishConfig>
class goby::middleware::tool::PublishToolApplication< ImplementationTag, PublishConfig >

Application implementing "goby <impl> publish" for a given interprocess implementation.

Template Parameters
ImplementationTagTag selecting the interprocess implementation (e.g. udpm::detail::InterProcessTag)
PublishConfigConfig type accepted by publish_tool_impl()

Definition at line 242 of file publish_subscribe_tool.h.

Constructor & Destructor Documentation

◆ PublishToolApplication()

template<typename ImplementationTag , typename PublishConfig >
goby::middleware::tool::PublishToolApplication< ImplementationTag, PublishConfig >::PublishToolApplication ( )
inline

Definition at line 250 of file publish_subscribe_tool.h.

◆ ~PublishToolApplication()

template<typename ImplementationTag , typename PublishConfig >
goby::middleware::tool::PublishToolApplication< ImplementationTag, PublishConfig >::~PublishToolApplication ( )
overridedefault

The documentation for this class was generated from the following file: