From f9991309d2e37a772e18262cce2de20a9c214c6c Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Mon, 14 Apr 2025 17:32:11 +0200 Subject: [PATCH] chore(init): add basic files for more information, see https://pre-commit.ci --- lerobot/common/cameras/__init__.py | 15 +++++++++++++++ lerobot/common/cameras/camera_device.py | 13 +++++++++++++ lerobot/common/cameras/configs.py | 13 +++++++++++++ lerobot/common/cameras/opencv/opencv_camera.py | 13 +++++++++++++ .../common/cameras/realsense/realsense_camera.py | 13 +++++++++++++ lerobot/common/cameras/realsense/realsense_sdk.py | 0 lerobot/common/cameras/utils.py | 13 +++++++++++++ 7 files changed, 80 insertions(+) create mode 100644 lerobot/common/cameras/__init__.py create mode 100644 lerobot/common/cameras/camera_device.py create mode 100644 lerobot/common/cameras/configs.py create mode 100644 lerobot/common/cameras/opencv/opencv_camera.py create mode 100644 lerobot/common/cameras/realsense/realsense_camera.py create mode 100644 lerobot/common/cameras/realsense/realsense_sdk.py create mode 100644 lerobot/common/cameras/utils.py diff --git a/lerobot/common/cameras/__init__.py b/lerobot/common/cameras/__init__.py new file mode 100644 index 00000000..cac4c5df --- /dev/null +++ b/lerobot/common/cameras/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2024 The HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# from .camera_device import CameraDevice ... diff --git a/lerobot/common/cameras/camera_device.py b/lerobot/common/cameras/camera_device.py new file mode 100644 index 00000000..f52df1bd --- /dev/null +++ b/lerobot/common/cameras/camera_device.py @@ -0,0 +1,13 @@ +# Copyright 2024 The HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/lerobot/common/cameras/configs.py b/lerobot/common/cameras/configs.py new file mode 100644 index 00000000..f52df1bd --- /dev/null +++ b/lerobot/common/cameras/configs.py @@ -0,0 +1,13 @@ +# Copyright 2024 The HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/lerobot/common/cameras/opencv/opencv_camera.py b/lerobot/common/cameras/opencv/opencv_camera.py new file mode 100644 index 00000000..f52df1bd --- /dev/null +++ b/lerobot/common/cameras/opencv/opencv_camera.py @@ -0,0 +1,13 @@ +# Copyright 2024 The HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/lerobot/common/cameras/realsense/realsense_camera.py b/lerobot/common/cameras/realsense/realsense_camera.py new file mode 100644 index 00000000..f52df1bd --- /dev/null +++ b/lerobot/common/cameras/realsense/realsense_camera.py @@ -0,0 +1,13 @@ +# Copyright 2024 The HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/lerobot/common/cameras/realsense/realsense_sdk.py b/lerobot/common/cameras/realsense/realsense_sdk.py new file mode 100644 index 00000000..e69de29b diff --git a/lerobot/common/cameras/utils.py b/lerobot/common/cameras/utils.py new file mode 100644 index 00000000..f52df1bd --- /dev/null +++ b/lerobot/common/cameras/utils.py @@ -0,0 +1,13 @@ +# Copyright 2024 The HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License.