You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nandish Patel edited this page Jun 29, 2021
·
4 revisions
Node Registry
The node_registry package provides the base node classes and utils to eliminate boilerplates when creating ROS nodes. For example when using the simulator all the use_sim_time parameter of all nodes in the system should be set to True. Using the registry base class, such functionalities can easily be accomplished. This is applicable for both C++/Python
Python
The XNode should be the base class all of the python nodes.
A python node can also be created using the easy to use decorators.
#!/usr/bin/env python3fromnode_registryimportregister, rosnode# This should be the first function below the import@rosnodedefnode() ->str:
return'my_node'# register the node spinning.register()
CPP Node
The CPP nodes should be the subclass of node_registry::xnode::XNode.