aztarna.ros.ros package¶
Submodules¶
aztarna.ros.ros.helpers module¶
ROS Scanner helper module.
:author Alias Robotics SL (https://aliasrobotics.com)
-
class
aztarna.ros.ros.helpers.Node(name)[source]¶ Bases:
aztarna.ros.commons.BaseNodeROSNode class, an extension of the BaseNodeROS
-
class
aztarna.ros.ros.helpers.ROSHost(address, port)[source]¶ Bases:
aztarna.ros.commons.BaseHostROSClass for keeping all the attributes of a ROS Node.Extends:class:aztarna.commons.BaseHostROS
aztarna.ros.ros.scanner module¶
ROS Scanner module.
:author Alias Robotics SL (https://aliasrobotics.com)
-
class
aztarna.ros.ros.scanner.ROSScanner[source]¶ Bases:
aztarna.commons.RobotAdapterROSScanner class, an extension of BaseScanner for ROS.
-
analyze_nodes(address, port)[source]¶ Scan a node and gather all its data including topics, services and Communications.
- Parameters
address – address of the ROS master
port – port of the ROS master
-
static
analyze_topic_types(ros_master_client)[source]¶ Extract topic from ROS Master and disassemble them into topic name and topic type.
- Parameters
ros_master_client – xml-rpc object for the ROS Master Client
- Returns
A dictionary of topics. Key is the topic name and value the topic type
-
extract_nodes(source_array, topics, pub_or_sub, host)[source]¶ From all the data ROS Master returns, extract just the node info.
- Parameters
source_array – A multiple level array containing data from the the ROS system state
topics – A list of all topics found in the ROS system
pub_or_sub – A boolean to separate publisher and subscriber nodes
host – Current ROS host
-
extract_services(source_array, host)[source]¶ Extract the services from the ROS system state.
- Parameters
source_array – A multiple level array containing data from the the ROS system state
host – Current ROS host
-
static
get_create_node(node_name, host)[source]¶ Generate new
aztarna.ros.helpers.Nodeobjects, and if they exist just return them.- Parameters
node_name – The name of the node to create or return
host – Current ROS host
- Returns
The newly created node or an existing that matches
node_name
-