Skip to content

Commit

Permalink
release: v0.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rise0chen committed Feb 28, 2024
1 parent 7b2eda5 commit 62a3c1b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license-file = "LICENSE"
name = "lebai_sdk"
repository = "https://github.com/lebai-robotics/lebai-sdk.rs"
version = "0.2.9"
version = "0.2.10"

[workspace]
members = [
Expand Down
2 changes: 1 addition & 1 deletion proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords = ["protobuf"]
license = "MIT"
name = "lebai-proto"
repository = "https://github.com/lebai-robotics/lebai-sdk.rs"
version = "3.1.3"
version = "3.1.4"

[dependencies]
jsonrpsee = {version = "0.21", features = ["client-core", "macros"]}
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/claw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ impl Robot {
}
pub(crate) async fn set_claw(&self, force: Option<f64>, amplitude: Option<f64>) -> Result<()> {
let req = SetClawRequest {
force: force.map(|x| x.into()),
amplitude: amplitude.map(|x| x.into()),
force,
amplitude,
};
let _ = self.c.set_claw(Some(req)).await.map_err(|e| e.to_string())?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/dynamic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Robot {
}
pub(crate) async fn set_payload(&self, mass: Option<f64>, cog: Option<Position>) -> Result<()> {
let req = SetPayloadRequest {
mass: mass.map(|x| x.into()),
mass,
cog,
};
let _ = self.c.set_payload(Some(req)).await.map_err(|e| e.to_string())?;
Expand Down
6 changes: 3 additions & 3 deletions src/rpc/motion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl Robot {
for i in 0..p.0.len() {
joints.push(JointMove {
pose: p.0[i],
velocity: Some(v.get(i).copied().unwrap_or_default().into()),
velocity: v.get(i).copied(),
acc: None,
})
}
Expand All @@ -114,8 +114,8 @@ impl Robot {
for i in 0..p.0.len() {
joints.push(JointMove {
pose: p.0[i],
velocity: Some(v.get(i).copied().unwrap_or_default().into()),
acc: Some(a.get(i).copied().unwrap_or_default().into()),
velocity: v.get(i).copied(),
acc: a.get(i).copied(),
})
}
let req = MovePvatRequest { duration: t, joints };
Expand Down

0 comments on commit 62a3c1b

Please sign in to comment.