pycram.ros.no_ros.ros_tools#
Exceptions#
Exception raised when a resource is not found. |
Functions#
|
Get the path of a ROS package. Using the os module to avoid importing rospkg. |
|
|
|
Get the names of all nodes in the ROS system. |
|
Creates a RosPack instance to search for resources of ros packages. |
|
Get a parameter from the ROS parameter server. |
|
Wait for a message on a topic. |
Check if the ROS master is online. |
|
|
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:
ExceptionException 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.