Skip to content

Commit

Permalink
Add camera_info_manager_py (#335)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Nov 25, 2024
1 parent cd049d0 commit d09c82c
Show file tree
Hide file tree
Showing 18 changed files with 1,691 additions and 0 deletions.
65 changes: 65 additions & 0 deletions camera_info_manager_py/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Changelog for package camera_info_manager_py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

6.0.1 (2024-11-22)
------------------
* Bump package version to synchronize with image_common
* Contributors: Chris Iverach-Brereton

1.0.0 (2024-05-16)
------------------
* Ros2 (`#2 <https://github.com/clearpathrobotics/camera_info_manager_py/issues/2>`_)
* Run magic converter
* Ament_python package
* Fix some imports
* Remove references to cpp camera info manager.
Disable tests
* Linting
* Fully Remove old tests
* Add lint tests
* Final tests
* Remove pep257 from depends
* Contributors: Michael Hosmar

0.3.1 (2021-11-18)
------------------
* changelog
* Contributors: José Mastrangelo

0.3.0 (2021-11-18)
------------------
* added CPR maintainer
* Release to Melodic and Noetic
* Contributors: Jack O'Quin, José Mastrangelo, Lucas Walter, Martin Pecka

0.2.3 (2014-05-13)
------------------
* Only use rostest when testing enabled, thanks to Lukas Bulwahn.
* Move repository to ros-perception.
* Contributors: Jack O'Quin, Lukas Bulwahn

0.2.2 (2013-07-25)
------------------
* Add namespace parameter to constructor, so a driver can handle multiple cameras. Enhancement thanks to Martin Llofriu.
* Make unit tests conditional on ``CATKIN_ENABLE_TESTING``.
* Release to Groovy and Hydro.
* Contributors: Jack O'Quin, mllofriu

0.2.1 (2013-04-14)
------------------
* Set null calibration even when URL invalid (#7).
* Release to Groovy and Hydro.
* Contributors: Jack O'Quin

0.2.0 (2013-03-28)
------------------
* Convert to catkin.
* Remove roslib dependency.
* Release to Groovy and Hydro.
* Contributors: Jack O'Quin

0.1.0 (2012-12-05)
------------------
* Initial Python camera_info_manager release to Fuerte.
* Contributors: Jack O'Quin
34 changes: 34 additions & 0 deletions camera_info_manager_py/CMakeLists.txt.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
cmake_minimum_required(VERSION 3.8)
project(camera_info_manager_py)
find_package(ament_cmake REQUIRED)
find_package(rclpy REQUIRED)
find_package(sensor_msgs REQUIRED)

include_directories(include)

ament_export_dependencies(sensor_msgs)
ament_package()

catkin_install_python(
PROGRAMS
src/camera_info_manager/camera_info_manager.py
src/camera_info_manager/zoom_camera_info_manager.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

# Unit test uses nose, but needs rostest to create a ROS environment.
if (BUILD_TESTING)
find_package(roscpp REQUIRED)
find_package(camera_info_manager REQUIRED)

find_package(rostest REQUIRED)
add_executable(generate_camera_info
tests/generate_camera_info.cpp
)
# TODO(lucasw) Can the roscpp and camera_info_manager dependencies
# get added to catkin_LIBRARIES somehow?
target_link_libraries(generate_camera_info ${catkin_LIBRARIES}
${roscpp_LIBRARIES} ${camera_info_manager_LIBRARIES})

add_rostest(tests/load_cpp_camera_info.test DEPENDENCIES generate_camera_info)
add_rostest(tests/unit_test.test)
endif(CATKIN_ENABLE_TESTING)
3 changes: 3 additions & 0 deletions camera_info_manager_py/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Any contribution that you make to this repository will
be under the BSD license 2.0, as dictated by that
[license](https://opensource.org/licenses/BSD-3-Clause).
30 changes: 30 additions & 0 deletions camera_info_manager_py/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
All rights reserved.

Software License Agreement (BSD License 2.0)

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
16 changes: 16 additions & 0 deletions camera_info_manager_py/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Overview
========

This ROS_ package defines a Python camera_info_manager interface,
providing `sensor_msgs/CameraInfo`_ support for camera drivers written
in Python.

ROS wiki documentation: `camera_info_manager_py`_.

This interface is similar to that of the C++ `camera_info_manager`_
package, but not identical.

.. _ROS: http://ros.org
.. _`sensor_msgs/CameraInfo`: http://ros.org/doc/api/sensor_msgs/html/msg/CameraInfo.html
.. _`camera_info_manager`: http://ros.org/wiki/camera_info_manager
.. _`camera_info_manager_py`: http://ros.org/wiki/camera_info_manager_py
5 changes: 5 additions & 0 deletions camera_info_manager_py/camera_info_manager.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
camera_info_manager
-------------------

.. automodule:: camera_info_manager
:members:
35 changes: 35 additions & 0 deletions camera_info_manager_py/camera_info_manager/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2024 Clearpath Robotics Inc.
# All rights reserved.
#
# Software License Agreement (BSD License 2.0)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Clearpath Robotics Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.


from .camera_info_manager import * # noqa: F401, F403, RUF100
from .zoom_camera_info_manager import * # noqa: F401, F403, RUF100
Loading

0 comments on commit d09c82c

Please sign in to comment.