Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 nidhogg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nidhogg"
version = "0.4.0"
version = "0.5.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
9 changes: 7 additions & 2 deletions nidhogg/src/backend/lola.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ impl ReadHardwareInfo for LolaBackend {

impl LolaBackend {
/// Read a [`LolaNaoState`] from the `LoLA` socket.
fn read_lola_nao_state<'a>(
///
/// # Note
///
/// This reads from the underlying `LoLA` unix socket, which consumes the message
/// sent by `LoLA`.
pub fn read_lola_nao_state<'a>(
&mut self,
buf: &'a mut [u8; LOLA_BUFFER_SIZE],
) -> Result<LolaNaoState<'a>> {
Expand Down Expand Up @@ -501,7 +506,7 @@ impl FromLoLA<[f32; 3]> for Vector3<f32> {

#[derive(Debug, Deserialize)]
#[serde(rename_all = "PascalCase")]
struct LolaNaoState<'a> {
pub struct LolaNaoState<'a> {
stiffness: [f32; 25],
position: [f32; 25],
temperature: [f32; 25],
Expand Down
5 changes: 1 addition & 4 deletions nidhogg/src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ pub use coppelia::CoppeliaBackend;

#[cfg(feature = "lola")]
mod lola;
pub use lola::LolaControlMsg;

#[cfg(feature = "lola")]
pub use lola::LolaBackend;
pub use lola::{LolaBackend, LolaControlMsg, LolaNaoState};

use std::any::type_name;
use std::thread;
Expand Down