pycram.ros.no_ros.ros_tools#

Exceptions#

ResourceNotFound

Exception raised when a resource is not found.

Functions#

get_ros_package_path(→ str)

Get the path of a ROS package. Using the os module to avoid importing rospkg.

sleep(duration)

get_node_names([namespace])

Get the names of all nodes in the ROS system.

create_ros_pack([ros_paths])

Creates a RosPack instance to search for resources of ros packages.

get_parameter(name)

Get a parameter from the ROS parameter server.

wait_for_message(topic_name, msg_type)

Wait for a message on a topic.

is_master_online()

Check if the ROS master is online.

get_time()

Get the current time from the ROS system.

Module Contents#

pycram.ros.no_ros.ros_tools.get_ros_package_path(package_name: str) str#

Get the path of a ROS package. Using the os module to avoid importing rospkg.

pycram.ros.no_ros.ros_tools.sleep(duration: float)#
pycram.ros.no_ros.ros_tools.get_node_names(namespace=None)#

Get the names of all nodes in the ROS system.

pycram.ros.no_ros.ros_tools.create_ros_pack(ros_paths=None)#

Creates a RosPack instance to search for resources of ros packages.

exception pycram.ros.no_ros.ros_tools.ResourceNotFound#

Bases: Exception

Exception raised when a resource is not found.

pycram.ros.no_ros.ros_tools.get_parameter(name: str)#

Get a parameter from the ROS parameter server.

pycram.ros.no_ros.ros_tools.wait_for_message(topic_name: str, msg_type)#

Wait for a message on a topic.

pycram.ros.no_ros.ros_tools.is_master_online()#

Check if the ROS master is online.

pycram.ros.no_ros.ros_tools.get_time()#

Get the current time from the ROS system.