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 ROS1 API facade for ROS2, or imports rospy if ROS1 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 06.03.2022
10@modified 24.06.2022
11------------------------------------------------------------------------------
12"""
13## @namespace rosros.rospify
14import os
15
16
17if os.getenv("ROS_VERSION") != "2":
18 from rospy import *
19 from rospy import timer
20 from rospy import Timer, wait_for_message
21else:
22 from rosros.rospify.rospify import *
Stand-in for `rospy` in ROS2.
Definition rospify.py:1