Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE.TXT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2013-2022
Copyright 2013-2025
Carnegie Robotics, LLC
4501 Hatfield Street, Pittsburgh, PA 15201
http://www.carnegierobotics.com
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# LibMultiSense

- [Hello World](#hello-world)
- [OpenCV Integration](#opencv-integration)
- [Copy-Free Buffer Reservations](#copy-free-operations-image-buffer-reservations)
- [Camera Configuration](#camera-configuration)
- [Depth Image Generation](#depth-image-generation)
- [OpenCV Integration](#opencv-integration)
- [Copy-Free Buffer Reservations](#copy-free-operations-image-buffer-reservations)
- [Camera Configuration](#camera-configuration)
- [Depth Image Generation](#depth-image-generation)
- [Installation](#installation)
- [Doccumentation](#doccumentation)
- [Support](#support)

LibMultiSense is a C++ library used to interface with the MultiSense S
family of sensors from Carnegie Robotics. For more information on the
various MultiSense products please visit
http://carnegierobotics.com/products/
https://carnegierobotics.com/products

For more detailed documentation on general MultiSense operation
please visit
Expand Down Expand Up @@ -103,8 +103,7 @@ To report an issue with this library or request a new feature,
please use the [GitHub issues system](https://github.com/carnegierobotics/LibMultiSense/issues)

For product support, please see the [support section of our website](https://carnegierobotics.com/support)
Individual support requests can be created in our [support portal](https://support.carnegierobotics.com/hc/en-us)

Individual support requests can be created in our [support portal](https://carnegierobotics.com/submitaticket)

### Hello World

Expand All @@ -118,6 +117,7 @@ The following example demonstrates how to connect, stream, and receive image
for the MultiSense camera.

#### test.cpp

```c++
#include <iostream>
#include <unistd.h>
Expand Down Expand Up @@ -217,8 +217,6 @@ install(TARGETS test
> cmake -DCMAKE_PREFIX_PATH=<path-to-libmultisense-install> ..
> make



### OpenCV Integration

To display the images received from the camera in a OpenCV window, the image callback function
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/channel.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/channel.cc
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/constants.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/constants.cc
*
* Copyright 2021-2022
* Copyright 2021-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/dispatch.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/dispatch.cc
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/flash.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/flash.cc
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/public.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/public.cc
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/utility/Constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Definitions of variables representing physical constants.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/utility/Exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Tascione's?) StandardException.cc file, which was developed under
* project RD1013.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/details/utility/TimeStamp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Kratzer's TimeStamp class, which was developed under project
* RD1034.
*
* Copyright 2011-2022
* Copyright 2011-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/MultiSenseChannel.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/include/MultiSense/MultiSenseTypes.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/MultiSenseTypes.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/include/MultiSense/details/channel.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/channel.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/listeners.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/include/MultiSense/details/query.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/query.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/include/MultiSense/details/signal.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/signal.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
2 changes: 1 addition & 1 deletion source/LibMultiSense/include/MultiSense/details/storage.hh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/storage.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A generic I/O stream buffer
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Declarations of variables representing physical constants.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Tascione's?) StandardException.h file, which was developed under
* project RD1013.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Declarations of convenience functions and functors.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Macros and symbols to help portability between different compiler
* versions.
*
* Copyright 2014-2022
* Copyright 2014-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down Expand Up @@ -59,7 +59,7 @@
// MS Visual C++ uses __declspec(thread) to declare thread local variables.
#define CRL_THREAD_LOCAL __declspec(thread)
#else
#error "This compiler is not yet supported. Please contact Carnegie Robotics support at http://support.carnegierobotics.com for assistance."
#error "This compiler is not yet supported. Please contact Carnegie Robotics support at https://carnegierobotics.com/submitaticket for assistance."
#endif

#if defined (__GNUC__)
Expand All @@ -73,7 +73,7 @@
// Use C99 standard macros to get the undecorated name of the current function
#define CRL_PRETTY_FUNCTION __func__
#else
#error "This compiler is not yet supported. Please contact Carnegie Robotics support at http://support.carnegierobotics.com for assistance."
#error "This compiler is not yet supported. Please contact Carnegie Robotics support at https://carnegierobotics.com/submitaticket for assistance."
#endif

#if !defined(MULTISENSE_API)
Expand All @@ -92,11 +92,14 @@
#ifndef NOMINMAX
#define NOMINMAX 1
#endif

#define SOCKET_ERRNO WSAGetLastError()
#define SOCKET_STR_ERR strerror(SOCKET_ERRNO)
#define CRL_EAGAIN WSAETIMEDOUT
#define usleep(usec) Sleep((usec)/1000)
#endif

#ifndef WIN32
#else
#define SOCKET_ERRNO errno
#define SOCKET_STR_ERR strerror(SOCKET_ERRNO)
#define CRL_EAGAIN EAGAIN
#define closesocket close
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* derived from Eric Kratzer's ReferenceCount class, which was
* developed under project RD1034.
*
* Copyright 2011-2022
* Copyright 2011-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/utility/Thread.hh
*
* Copyright 2014-2022
* Copyright 2014-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Kratzer's TimeStamp class, which was developed under project
* RD1034.
*
* Copyright 2011-2022
* Copyright 2011-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* Functions for converting between physical units.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Tascione's?) Utility.h file, which was developed under project
* RD1013.
*
* Copyright 2012-2022
* Copyright 2012-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down Expand Up @@ -48,7 +48,6 @@
#include <errno.h>
#include <string.h>
#include <linux/futex.h>
#include <unistd.h>
#include <sys/syscall.h>

#include <vector>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/details/utility/macos/Thread.hh
*
* Copyright 2017-2022
* Copyright 2017-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Tascione's?) Utility.h file, which was developed under project
* RD1013.
*
* Copyright 2014-2022
* Copyright 2014-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Tascione's?) Utility.h file, which was developed under project
* RD1013.
*
* Copyright 2014-2022
* Copyright 2014-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file LibMultiSense/AckMessage.hh
*
* Copyright 2013-2022
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This message contains apriltag detection data.
*
* Copyright 2021-2022
* Copyright 2021-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This message contains the current camera configuration.
*
* Copyright 2013-2023
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This message contains the current camera configuration.
*
* Copyright 2013-2023
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This message contains a request for camera configuration.
*
* Copyright 2013-2023
* Copyright 2013-2025
* Carnegie Robotics, LLC
* 4501 Hatfield Street, Pittsburgh, PA 15201
* http://www.carnegierobotics.com
Expand Down
Loading
Loading