ros_node
Functions related to the handling of ROS nodes.
- ros_node.ros_node_from_pkg(pkg_name, node_name, launch_master=False, launch_master_term=True, launch_new_term=True, name=None, ns='/', output='log') bool [source]
Function to launch a ROS node from a package.
- Parameters
pkg_name (str) – Name of the package to launch the node from.
node_name (str) – Name of the node to launch.
launch_master (bool) – If ROSMASTER is not running launch it.
launch_master_term (bool) – If launch ROSMASTER do it in an external terminal.
launch_new_term (bool) – Launch the process in a new terminal (Xterm).
name (str) – Name to give the node to be launched.
ns (str) – Namespace to give the node to be launched.
output (str) – log, screen, or None.
- Returns
True if the node was launched, False otherwise.
- Return type
bool
- ros_node.ros_kill_node(node_name) bool [source]
Function to kill a ROS node.
- Parameters
node_name (str) – Name of the node to kill.
- Returns
True if the node was killed, False otherwise.
- Return type
bool
- ros_node.ros_kill_all_nodes() bool [source]
Function to kill all running ROS nodes.
- Returns
True if all nodes were killed, False otherwise.
- Return type
bool