@@ -253,10 +253,9 @@ class Device(PartialMixin, RefreshPollerMixin, ObjDict):
253
253
DOCKER_COMPOSE = 'dockercompose'
254
254
255
255
def __init__ (self , name , runtime = None , runtime_docker = False , runtime_preinstalled = False , ros_distro = None ,
256
- rosbag_mount_path = None ,
257
256
ros_workspace = None , description = None , python_version = DevicePythonVersion .PYTHON2 ,
258
257
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 ,
260
259
description , python_version )
261
260
self .name = name
262
261
# The below is done to ensure backward compatibility
@@ -270,15 +269,14 @@ def __init__(self, name, runtime=None, runtime_docker=False, runtime_preinstalle
270
269
self ._runtime_docker = runtime_docker
271
270
self ._runtime_preinstalled = runtime_preinstalled
272
271
self ._ros_distro = ros_distro
273
- self ._rosbag_mount_path = rosbag_mount_path
274
272
self ._ros_workspace = ros_workspace
275
273
self .description = description
276
274
self .python_version = python_version
277
275
self .config_variables = config_variables or {}
278
276
self .labels = labels or {}
279
277
280
278
@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 ,
282
280
ros_workspace , description , python_version ):
283
281
if not name or not isinstance (name , six .string_types ):
284
282
raise InvalidParameterException ('name must be a non-empty string' )
@@ -299,8 +297,6 @@ def validate(name, runtime, runtime_docker, runtime_preinstalled, ros_distro, ro
299
297
raise InvalidParameterException ('preinstalled runtime does not support noetic ros_distro yet' )
300
298
if ros_distro == ROSDistro .NOETIC and python_version == DevicePythonVersion .PYTHON2 :
301
299
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' )
304
300
if ros_workspace is not None and not isinstance (ros_workspace , six .string_types ):
305
301
raise InvalidParameterException ('ros_workspace must be of type string' )
306
302
if description is not None and not isinstance (description , six .string_types ):
@@ -320,8 +316,7 @@ def _serialize(self):
320
316
device ['config_variables' ] = {}
321
317
if self .description :
322
318
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' ]:
325
320
if getattr (self , field ):
326
321
device ['config_variables' ][field [1 :]] = getattr (self , field )
327
322
device ['config_variables' ].update (self .config_variables )
0 commit comments