The MAUVE Toolchain
|
Core of the ROS Publisher Resource. More...
#include <Publisher.hpp>
Public Member Functions | |
virtual void | cleanup_hook () override |
Hook function called when cleaning the shell. More... | |
virtual bool | configure_hook () override |
Hook function called when configuring the shell. More... | |
void | publish (T value) |
Publish value to ROS topic. More... | |
void | update () |
Update function: reads input and publish. More... | |
![]() | |
Core (Core const &core)=delete | |
Constructor by copy. More... | |
void | cleanup () overridefinal |
Cleanup the object. | |
bool | configure () overridefinal |
Configure the object. | |
std::string | container_name () const override |
Get the core container name. | |
bool | is_configured () const overridefinal |
Get the configuration status of the configurable object. More... | |
AbstractLogger & | logger () const override |
Get the logger. | |
Core & | operator= (Core const &core)=delete |
Copy operator. More... | |
std::string | shell_type_name () const override |
Get the shell type name. More... | |
![]() | |
AbstractCore () | |
Default constructor. More... | |
virtual | ~AbstractCore () noexcept |
Default descructor. More... | |
virtual std::string | to_string () const |
std::string | type_name () const |
Get type name. More... | |
![]() | |
const std::vector< AbstractProperty * > | get_properties () const |
Get the properties of the shell. More... | |
std::size_t | get_properties_size () const |
AbstractProperty * | get_property (std::string const &name) const |
AbstractProperty * | get_property (int index) const |
![]() | |
bool | init () |
Initialize ROS Node. | |
Additional Inherited Members | |
![]() | |
::ros::NodeHandle * | node |
An handle to the ROS node. | |
::ros::NodeHandle * | node_private |
An handle to the private view of the ROS node. | |
![]() | |
Core () | |
Default constructor. More... | |
virtual | ~Core () noexcept |
Default descructor. More... | |
RosShell< T, ROS_T > & | shell () const |
Access to the instantiated shell. More... | |
![]() | |
template<typename T > | |
Property< T > & | mk_property (std::string const &name, T init_value) |
Create a new property. More... | |
![]() | |
virtual bool | open (const std::string &topic) final |
Open publisher on topic topic. More... | |
virtual void | shutdown () final |
Shutdown the publisher. | |
![]() | |
ROS_T | msg |
The ROS message owned by the resource. | |
runtime::RtMutex | mutex |
A mutex to protect the msg. | |
::ros::Publisher | publisher |
The ROS publisher. | |
Core of the ROS Publisher Resource.
T | MAUVE Type |
ROS_T | ROS Type |
|
inlineoverridevirtual |
Hook function called when cleaning the shell.
Redefine this function in Shell subclasses to specify the behavior of your shell when being cleaned up.
Reimplemented from mauve::runtime::WithHook.
|
inlineoverridevirtual |
Hook function called when configuring the shell.
Redefine this function in Shell subclasses to specify the behavior of your shell when being configured.
Reimplemented from mauve::runtime::WithHook.
void mauve::ros::PublisherCore< T, ROS_T >::publish | ( | T | value | ) |
Publish value to ROS topic.
value | MAUVE value to publish. |
void mauve::ros::PublisherCore< T, ROS_T >::update | ( | ) |
Update function: reads input and publish.