rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""
2Provides ROS2 API facade for ROS1, or imports rclpy if ROS2 environment.
3
4------------------------------------------------------------------------------
5This file is part of rosros - simple unified interface to ROS1 / ROS2.
6Released under the BSD License.
7
8@author Erki Suurjaak
9@created 17.02.2022
10@modified 23.06.2022
11------------------------------------------------------------------------------
12"""
13## @namespace rosros.rclify
14import os
15
16
17if os.getenv("ROS_VERSION") != "2":
18 from rosros.rclify import callback_groups
19 from rosros.rclify import clock
20 from rosros.rclify import duration
21 from rosros.rclify import exceptions
22 from rosros.rclify import executors
23 from rosros.rclify import node
24 from rosros.rclify import parameter
25 from rosros.rclify import qos
26 from rosros.rclify import task
27 from rosros.rclify import time
28 from rosros.rclify import topic_endpoint_info
29 from rosros.rclify.parameter import Parameter
30 from rosros.rclify.task import Future
31 from rosros.rclify.rclify import *
32else:
33 from rclpy import *
34 import rclpy.clock as clock
35 import rclpy.duration
36 import rclpy.exceptions
37 import rclpy.node
38 import rclpy.parameter
39 import rclpy.qos
40 import rclpy.task
41 import rclpy.time
42 import rclpy.topic_endpoint_info
Partial stand-in of ROS2 `rclpy.parameter`.
Definition parameter.py:1
Stand-in for `rclpy` in ROS1.
Definition rclify.py:1
Port of ROS2 `rclpy.task` for ROS1.
Definition task.py:1
Provides ROS2 API facade for ROS1, or imports rclpy if ROS2 environment.
Definition __init__.py:1