Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
aaddc09
Reduce usage of build pools (#1222)
May 28, 2020
61951da
Update usage.md
Jun 30, 2020
ec82b0b
update usage.md (#1522)
Taeyoung96 Mar 18, 2021
e354721
Fix build with libmatroska 1.6.x (#1379)
robUx4 Mar 18, 2021
aac136c
Adding Azure Kinect DK Camera CAD file (#1532)
jaygullapalli Mar 18, 2021
2feb342
Python api development (#1483)
JonathanESantos Mar 24, 2021
f210de3
Fix compile error for std::nothrow (#1560)
UnaNancyOwen Apr 9, 2021
ea01d60
Update to project build pipeline (#1575)
jaygullapalli Apr 20, 2021
c03aa97
Add missing const qualifiers (#1451)
HlibKazakov2000 Apr 22, 2021
6b9321b
Fix Close Device of Python API (#1558)
UnaNancyOwen Apr 27, 2021
3a9dbac
Fixing point cloud transformation bug, switching type used for image …
JonathanESantos Apr 27, 2021
cdec4f2
Mark member functions as const that don't modify state (#1593)
HlibKazakov2000 May 6, 2021
a20f468
Fix a typo in the documentation (#1445)
HlibKazakov2000 May 6, 2021
36df754
Replace C clock with steady_clock (#1592)
HlibKazakov2000 May 26, 2021
04168ad
Adding calibration and registration tools to examples. (#1475)
kyrendon-msft May 26, 2021
920e395
Create readme.txt
qm13 Jul 19, 2021
f22b761
Add files via upload
qm13 Jul 19, 2021
45f36b6
Update readme.txt
qm13 Oct 20, 2021
dda733a
Delete firmware-beta directory
qm13 Oct 20, 2021
44db841
Create readme.txt
qm13 Oct 20, 2021
2b03a65
Update readme.txt
qm13 Oct 20, 2021
ba9bdad
Update readme.txt
qm13 Oct 20, 2021
d87ef57
Add files via upload
qm13 Oct 20, 2021
20eeee1
Update usage.md
qm13 May 13, 2022
48f9652
Update usage.md
qm13 May 13, 2022
c8c3b2f
Update azure-pipelines.yml for Azure Pipelines
dasparli Aug 16, 2022
34bc7cc
Update azure-pipelines.yml for Azure Pipelines
dasparli Aug 16, 2022
62c4b48
Microsoft mandatory file (#1814)
microsoft-github-policy-service[bot] Aug 16, 2022
8bb59ca
Updating Targetframework to netcoreapp3.1 (#1826)
jaygullapalli Sep 1, 2022
3503ba4
Updating target framework to use net6.0 (#1980)
jaygullapalli May 21, 2024
cd2b3e9
Updating logo image
jaygullapalli Jun 8, 2024
e165dfb
Updating usage.md markdown file for SDK v1.4.2
jaygullapalli Jun 21, 2024
fe20e2e
Updates from develop for v1.4.2 (#1984)
jaygullapalli Jul 3, 2024
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
Prev Previous commit
Next Next commit
Mark member functions as const that don't modify state (#1593)
  • Loading branch information
HlibKazakov2000 authored May 6, 2021
commit cdec4f2bed941821ed84a7789b22c47e28c4f18d
12 changes: 6 additions & 6 deletions include/k4a/k4a.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ class device
*
* \sa k4a_device_get_imu_sample
*/
bool get_imu_sample(k4a_imu_sample_t *imu_sample, std::chrono::milliseconds timeout)
bool get_imu_sample(k4a_imu_sample_t *imu_sample, std::chrono::milliseconds timeout) const
{
int32_t timeout_ms = internal::clamp_cast<int32_t>(timeout.count());
k4a_wait_result_t result = k4a_device_get_imu_sample(m_handle, imu_sample, timeout_ms);
Expand All @@ -1219,7 +1219,7 @@ class device
*
* \sa k4a_device_get_imu_sample
*/
bool get_imu_sample(k4a_imu_sample_t *imu_sample)
bool get_imu_sample(k4a_imu_sample_t *imu_sample) const
{
return get_imu_sample(imu_sample, std::chrono::milliseconds(K4A_WAIT_INFINITE));
}
Expand All @@ -1229,7 +1229,7 @@ class device
*
* \sa k4a_device_start_cameras
*/
void start_cameras(const k4a_device_configuration_t *configuration)
void start_cameras(const k4a_device_configuration_t *configuration) const
{
k4a_result_t result = k4a_device_start_cameras(m_handle, configuration);
if (K4A_RESULT_SUCCEEDED != result)
Expand All @@ -1242,7 +1242,7 @@ class device
*
* \sa k4a_device_stop_cameras
*/
void stop_cameras() noexcept
void stop_cameras() const noexcept
{
k4a_device_stop_cameras(m_handle);
}
Expand All @@ -1252,7 +1252,7 @@ class device
*
* \sa k4a_device_start_imu
*/
void start_imu()
void start_imu() const
{
k4a_result_t result = k4a_device_start_imu(m_handle);
if (K4A_RESULT_SUCCEEDED != result)
Expand All @@ -1265,7 +1265,7 @@ class device
*
* \sa k4a_device_stop_imu
*/
void stop_imu() noexcept
void stop_imu() const noexcept
{
k4a_device_stop_imu(m_handle);
}
Expand Down