-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMU data example #9102
base: main
Are you sure you want to change the base?
IMU data example #9102
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
Latest documentation preview deployed successfully.
Note: This comment is updated whenever you push a commit. |
imu_data = pd.read_csv( | ||
cwd / DATASET_NAME / "dso/imu.txt", | ||
sep=" ", | ||
header=0, | ||
names=["timestamp", "gyro.x", "gyro.y", "gyro.z", "accel.x", "accel.y", "accel.z"], | ||
comment="#", | ||
) | ||
|
||
times = rr.TimeNanosColumn("timestamp", imu_data["timestamp"]) | ||
|
||
gyro = imu_data[["gyro.x", "gyro.y", "gyro.z"]] | ||
rr.send_columns("/gyroscope", indexes=[times], columns=rr.Scalar.columns(scalar=gyro)) | ||
|
||
accel = imu_data[["accel.x", "accel.y", "accel.z"]] | ||
rr.send_columns("/accelerometer", indexes=[times], columns=rr.Scalar.columns(scalar=accel)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be nice to bring this snippet out into the README to highlight for users that are browsing on the website
843ac29
to
dbc99d9
Compare
Related
Closes #9023
What
Adds an example showcasing how to log multi-dimensional signals using
send_columns
imu.mp4