Go to the documentation of this file.
22 struct NodeWithOptionalMasterPrivate;
48 void init(const ::ros::M_string& remappings, const ::std::string& name, uint32_t options);
57 void init(
int& argc,
char** argv, const ::std::string& name, uint32_t options);
65 void init(const ::ros::VP_string& remappings, const ::std::string& name, uint32_t options);
93 ::std::string
resolveName(const ::std::string& name,
bool remap =
true)
const;
103 ::std::unique_ptr<NodeWithOptionalMasterPrivate>
data;
::std::shared_ptr<::cras::BoundParamHelper > BoundParamHelperPtr
Convenience base class for providing this->log and getCrasLogger(). Just add it as a base to your cla...
NodeWithOptionalMaster(const ::cras::LogHelperPtr &log)
void init(const ::ros::M_string &remappings, const ::std::string &name, uint32_t options)
Initialize the node, autodetecting whether a ros master is running or not.
Bound param helper (allows omitting the param adapter in each getParam call).
::std::unique_ptr< NodeWithOptionalMasterPrivate > data
PIMPL.
Node that can run both with and without a ROS master. This can be useful for one-off scripts that do ...
::cras::BoundParamHelperPtr getPrivateParams() const
Get private parameters of the node.
virtual ~NodeWithOptionalMaster()
bool usesMaster() const
Is a live ROS master being used?
bool isInitialized() const
Has init() been called?
ROSCPP_DECL std::string remap(const std::string &name)
::std::string resolveName(const ::std::string &name, bool remap=true) const
Resolve a name relative to the global namespace.
::cras::LogHelper::Ptr LogHelperPtr
Pointer to LogHelper.
bool ok() const
Equivalent of ros::ok() .
::cras::LogHelperPtr log
Log helper.
void shutdown()
Shutdown the node.
cras_cpp_common
Author(s): Martin Pecka
autogenerated on Sun Jan 5 2025 03:50:32