rigid_body_motion.ros.init_node

rigid_body_motion.ros.init_node(name, start_master=False)[source]

Register a client node with the master.

Parameters
name: str

Name of the node.

start_master: bool, default False

If True, start a ROS master if one isn’t already running.

Returns
master: ROSLaunchParent or ROSMasterStub instance

If a ROS master was started by this method, returns a ROSLaunchParent instance that can be used to shut down the master with its shutdown() method. Otherwise, a ROSMasterStub is returned that shows a warning when its shutdown() method is called.