Skip to content

Commit d36ab1c

Browse files
refacrtor: remove rosbag related code references
1 parent 8f8d563 commit d36ab1c

15 files changed

+31
-3072
lines changed

docs/source/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ You can read the documentation for individual resource modules:
8181
Native Network <native_network>
8282
Static Route <static_route>
8383

84-
Rosbag <rosbag>
8584
Configuration <configuration>
8685
Metrics <metrics>
8786

docs/source/rosbag.rst

-28
This file was deleted.

rapyuta_io/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from rapyuta_io.utils import error
55
from .rio_client import Client
66
from .clients.device_manager import DeviceArch
7-
from .clients.rosbag import UploadOptions
87
from .clients.user_group import UserGroup
98

109
__version__ = "1.17.1"

rapyuta_io/clients/catalog_client.py

-109
This file was deleted.

rapyuta_io/clients/device.py

+3-8
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,9 @@ class Device(PartialMixin, RefreshPollerMixin, ObjDict):
253253
DOCKER_COMPOSE = 'dockercompose'
254254

255255
def __init__(self, name, runtime=None, runtime_docker=False, runtime_preinstalled=False, ros_distro=None,
256-
rosbag_mount_path=None,
257256
ros_workspace=None, description=None, python_version=DevicePythonVersion.PYTHON2,
258257
config_variables=None, labels=None):
259-
self.validate(name, runtime, runtime_docker, runtime_preinstalled, ros_distro, rosbag_mount_path, ros_workspace,
258+
self.validate(name, runtime, runtime_docker, runtime_preinstalled, ros_distro, ros_workspace,
260259
description, python_version)
261260
self.name = name
262261
# The below is done to ensure backward compatibility
@@ -270,15 +269,14 @@ def __init__(self, name, runtime=None, runtime_docker=False, runtime_preinstalle
270269
self._runtime_docker = runtime_docker
271270
self._runtime_preinstalled = runtime_preinstalled
272271
self._ros_distro = ros_distro
273-
self._rosbag_mount_path = rosbag_mount_path
274272
self._ros_workspace = ros_workspace
275273
self.description = description
276274
self.python_version = python_version
277275
self.config_variables = config_variables or {}
278276
self.labels = labels or {}
279277

280278
@staticmethod
281-
def validate(name, runtime, runtime_docker, runtime_preinstalled, ros_distro, rosbag_mount_path,
279+
def validate(name, runtime, runtime_docker, runtime_preinstalled, ros_distro,
282280
ros_workspace, description, python_version):
283281
if not name or not isinstance(name, six.string_types):
284282
raise InvalidParameterException('name must be a non-empty string')
@@ -299,8 +297,6 @@ def validate(name, runtime, runtime_docker, runtime_preinstalled, ros_distro, ro
299297
raise InvalidParameterException('preinstalled runtime does not support noetic ros_distro yet')
300298
if ros_distro == ROSDistro.NOETIC and python_version == DevicePythonVersion.PYTHON2:
301299
raise InvalidParameterException('noetic ros_distro not supported on python_version 2')
302-
if rosbag_mount_path is not None and not isinstance(rosbag_mount_path, six.string_types):
303-
raise InvalidParameterException('rosbag_mount_path must be of type string')
304300
if ros_workspace is not None and not isinstance(ros_workspace, six.string_types):
305301
raise InvalidParameterException('ros_workspace must be of type string')
306302
if description is not None and not isinstance(description, six.string_types):
@@ -320,8 +316,7 @@ def _serialize(self):
320316
device['config_variables'] = {}
321317
if self.description:
322318
device['description'] = self.description
323-
for field in ['_runtime_docker', '_runtime_preinstalled', '_ros_distro', '_rosbag_mount_path',
324-
'_ros_workspace']:
319+
for field in ['_runtime_docker', '_runtime_preinstalled', '_ros_distro','_ros_workspace']:
325320
if getattr(self, field):
326321
device['config_variables'][field[1:]] = getattr(self, field)
327322
device['config_variables'].update(self.config_variables)

rapyuta_io/clients/model.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class DeviceConfig(ObjDict):
2424
:ivar key: Configuration key.
2525
:ivar value: Value of the configuration key.
2626
"""
27-
DEFAULT_DEVICE_CONFIG_VARIABLES = ('runtime', 'ros_workspace', 'ros_distro',
28-
'rosbag_mount_path')
27+
DEFAULT_DEVICE_CONFIG_VARIABLES = ('runtime', 'ros_workspace', 'ros_distro')
2928

3029
def __init__(self, *args, **kwargs):
3130
super(ObjDict, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)