Skip to content

Commit bfcf3ce

Browse files
authored
Update to Rerun 0.23 (#22)
* Update to Rerun 0.23 RC4 * Use 0.23 final * Remove call to old Scalar
1 parent faa2f32 commit bfcf3ce

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ endif()
1313

1414
# Rerun:
1515
include(FetchContent)
16-
FetchContent_Declare(rerun_sdk URL https://github.com/rerun-io/rerun/releases/download/0.22.0/rerun_cpp_sdk.zip)
16+
FetchContent_Declare(rerun_sdk URL https://github.com/rerun-io/rerun/releases/download/0.23.0/rerun_cpp_sdk.zip)
1717
FetchContent_MakeAvailable(rerun_sdk)
1818

1919
# VRS:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ If you choose not to use pixi, you will need to install a few things yourself be
2929
The Rerun C++ SDK works by connecting to an awaiting Rerun Viewer over TCP.
3030

3131
If you need to install the viewer, follow the [installation guide](https://www.rerun.io/docs/getting-started/installing-viewer). Two of the more common ways to install the Rerun Viewer are:
32-
* Via cargo: `cargo install rerun-cli@0.22.0 --locked`
33-
* Via pip: `pip install rerun-sdk==0.22.0`
32+
* Via cargo: `cargo install rerun-cli@0.23.0 --locked`
33+
* Via pip: `pip install rerun-sdk==0.23.0`
3434

3535
After you have installed it, you should be able to type `rerun` in your terminal to start the viewer.
3636

src/imu_player.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,15 @@ namespace rerun_vrs {
9999

100100
void IMUPlayer::log_accelerometer(const std::array<float, 3>& accelMSec2) {
101101
_rec->log(_entity_path + "/accelerometer", rerun::Arrows3D::from_vectors({accelMSec2}));
102-
_rec->log(_entity_path + "/accelerometer/x", rerun::Scalar(accelMSec2[0]));
103-
_rec->log(_entity_path + "/accelerometer/y", rerun::Scalar(accelMSec2[1]));
104-
_rec->log(_entity_path + "/accelerometer/z", rerun::Scalar(accelMSec2[2]));
102+
_rec->log(_entity_path + "/accelerometer", rerun::Scalars(accelMSec2));
105103
}
106104

107105
void IMUPlayer::log_gyroscope(const std::array<float, 3>& gyroRadSec) {
108-
_rec->log(_entity_path + "/gyroscope/x", rerun::Scalar(gyroRadSec[0]));
109-
_rec->log(_entity_path + "/gyroscope/y", rerun::Scalar(gyroRadSec[1]));
110-
_rec->log(_entity_path + "/gyroscope/z", rerun::Scalar(gyroRadSec[2]));
106+
_rec->log(_entity_path + "/gyroscope", rerun::Scalars(gyroRadSec));
111107
}
112108

113109
void IMUPlayer::log_magnetometer(const std::array<float, 3>& magTesla) {
114-
_rec->log(_entity_path + "/magnetometer/x", rerun::Scalar(magTesla[0]));
115-
_rec->log(_entity_path + "/magnetometer/y", rerun::Scalar(magTesla[1]));
116-
_rec->log(_entity_path + "/magnetometer/z", rerun::Scalar(magTesla[2]));
110+
_rec->log(_entity_path + "/magnetometer", rerun::Scalars(magTesla));
117111
}
118112

119113
bool might_contain_imu_data(const vrs::StreamId& id) {

0 commit comments

Comments
 (0)