Skip to content

Commit

Permalink
remove unused value in the config for js & add wasm package for debug…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
yepw committed Apr 16, 2023
1 parent bc258c7 commit 9d3b37d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ js-sys = "0.3"
serde_json = "1.0"
console_error_panic_hook = "0.1"

[dependencies.web-sys]
version = "0.3"
features = [
"console",
]

[profile.dev]
opt-level = 3
Expand Down
2 changes: 1 addition & 1 deletion src/groove/vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
pub struct VarsConstructorData {
pub urdf: String,
// pub urdf: String,
pub link_radius:f64,
pub base_links: Vec<String>,
pub ee_links: Vec<String>,
Expand Down
1 change: 1 addition & 0 deletions src/relaxed_ik_web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::utils_rust::transformations::{*};
use wasm_bindgen::prelude::*;
use js_sys::Array;
extern crate serde_json;
use web_sys;
extern crate console_error_panic_hook;
use nalgebra::{UnitQuaternion, Vector3, Vector6, Quaternion, Point3};

Expand Down

0 comments on commit 9d3b37d

Please sign in to comment.