rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
|
Stand-ins for `rospy.core` in ROS2. More...
Functions | |
get_node_uri () | |
Returns empty string (ROS1 compatibility stand-in). | |
get_ros_root (required=False, env=None) | |
Returns rclpy share directory. | |
is_shutdown () | |
Returns whether ROS2 has been started and shut down. | |
parse_rosrpc_uri (uri) | |
Utility function for parsing ROS-RPC URIs. | |
signal_shutdown (reason) | |
Initiates shutdown process. | |
Variables | |
str | ROSRPC = "rosrpc://" |
Stand-ins for `rospy.core` in ROS2.
rosros.rospify.core.get_node_uri | ( | ) |
rosros.rospify.core.get_ros_root | ( | required = False , |
|
env = None |
|||
) |
Returns rclpy share directory.
In ROS1, this returns a path along the lines of "/opt/ros/noetic/share/ros".
env | ignored (ROS1 compatibility stand-in) |
required | fail with ROSException if not found |
ROSException | if `require` is True and result unavailable |
rosros.rospify.core.is_shutdown | ( | ) |
rosros.rospify.core.parse_rosrpc_uri | ( | uri | ) |
rosros.rospify.core.signal_shutdown | ( | reason | ) |