-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
488 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
use parry_ad::shape::Ball; | ||
use optima_3d_spatial::optima_3d_pose::{ImplicitDualQuaternion, O3DPose}; | ||
use optima_proximity2::pair_group_queries::get_all_parry_pairs_idxs; | ||
use optima_proximity2::shapes::OParryShape; | ||
|
||
fn main() { | ||
let s1 = OParryShape::new(Ball::new(2.0_f32), ImplicitDualQuaternion::identity()); | ||
let s2 = OParryShape::new(Ball::new(2.0_f32), ImplicitDualQuaternion::identity()); | ||
let s3 = OParryShape::new(Ball::new(2.0_f32), ImplicitDualQuaternion::identity()); | ||
|
||
let s = vec![s1, s2, s3]; | ||
let i =get_all_parry_pairs_idxs(&s, &s, false, true); | ||
fn main() { | ||
|
||
println!("{:?}", i); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use ad_trait::AD; | ||
use serde::{Deserialize, Serialize}; | ||
use crate::pair_queries::{ParryDisMode, ParryShapeRep}; | ||
use serde_with::serde_as; | ||
use ad_trait::SerdeAD; | ||
|
||
pub struct ParryProximaDistanceGroupQry; | ||
|
||
#[serde_as] | ||
#[derive(Serialize, Deserialize)] | ||
pub struct ParryProximaDistanceGroupArgs<T: AD> { | ||
parry_shape_rep: ParryShapeRep, | ||
parry_dis_mode: ParryDisMode, | ||
use_average_distance: bool, | ||
#[serde_as(as = "SerdeAD<T>")] | ||
termination_distance_threshold: T | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.