Skip to content
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

A notational problem exists when switching modes in openrr_apps_robot_teleop. #642

Open
kaaatsu32329 opened this issue Jul 15, 2022 · 0 comments

Comments

@kaaatsu32329
Copy link
Contributor

pub async fn speak_current_mode(&self) -> Result<(), arci::Error> {
let nodes = self.control_nodes.lock().await;
let i = self.current_index();
let mode = nodes[i].mode();
let submode = nodes[i].submode();
self.speaker.speak(&format!("{mode}{submode}"))?.await
}

At L62, no space between mode and submode. Spaces disappear when switching modes like below.

PrintSpeaker: base
PrintSpeaker: commanddock command
PrintSpeaker: command undock command
PrintSpeaker: command dock command

But the inclusion of spaces to L62 created yet another display problem like bellow.

PrintSpeaker: pose  arm_collision_checked zero # 2 spaces
PrintSpeaker: pose arm_collision_checked zero # 1 space
PrintSpeaker: arm 0 # 1 space
PrintSpeaker: arm1 # no space
PrintSpeaker: arm2

Therefore, the output by the switcher.rs needs to be changed and an indication of when the mode has changed needs to be implemented for each mode node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant