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

open_manipulator keyboard teleop freezes #222

Open
ROBOTIS-Will opened this issue Nov 16, 2021 · 6 comments
Open

open_manipulator keyboard teleop freezes #222

ROBOTIS-Will opened this issue Nov 16, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ROBOTIS-Will
Copy link
Contributor

This issue was reproduced in the environment below.

  • Ubuntu 18.04
  • ROS Melodic
  • OpenMANIPULATOR-X (default settings)
  • U2D2 (port latency 1ms)

How to reproduce this issue

  1. Launch the controller
$ roslaunch open_manipulator_controller open_manipulator_controller.launch 
  1. Launch the teleop node and send keyboard commands continuously.
$ roslaunch open_manipulator_teleop open_manipulator_teleop_keyboard.launch
@ROBOTIS-Will ROBOTIS-Will added the bug Something isn't working label Nov 16, 2021
@ROBOTIS-Will ROBOTIS-Will changed the title open_manipulator keyboard freezes open_manipulator keyboard teleop freezes Nov 16, 2021
@DarrylHsu0105
Copy link

Hi, I am currently facing the same problem.
Ubuntu 20.04.3 LTS
OpenMANIPULATOR-P (default settings)
U2D2 (port latency 1ms)

And I used same command with you.
Now , I can't using GUI or Keyboard teleop control it.
I can only use "Actuator" and "read" button , everything else causes a freeze.
So, how can fix it. thank you.
By the way, I'm sure all of my joint are all within the working range (1.571 rad).

@ROBOTIS-Will
Copy link
Contributor Author

Hi @DarrylHsu0105
In case of operating the OpenMANIPULATOR-P, you should use the openmanipulator-p package.
https://github.com/ROBOTIS-GIT/open_manipulator_p
Which ROS version do you use?

@JYKimm
Copy link

JYKimm commented Nov 22, 2023

not fixed yet?

@ChangAnCN
Copy link

Same issue. can not use it.

@gholibqasobov
Copy link

HI there, has anyone solved it? I am having the same issue.

@sunghowoo
Copy link
Contributor

@DarrylHsu0105 The issue has been debugged and resolved. The root cause was that when keyboard inputs occurred consecutively, new commands were being issued before the robot had completed its previous movements, leading to the robot controller freezing.

Resolution:

In the open_manipulator_controller.cpp file, I used the open_manipulator_.getMovingState() method to ensure that additional commands are ignored while the robot is in motion. This modification prevents new commands from being executed during ongoing movements, ensuring smooth operation even with continuous keyboard input.

The fix has been applied in the develop branch, and you can access it using the following command:

git clone -b develop https://github.com/ROBOTIS-GIT/open_manipulator.git

With this adjustment, the robot now operates smoothly even with rapid keyboard inputs, and the issue of the program freezing has been resolved. Please feel free to reach out if any further issues arise.

@sunghowoo sunghowoo self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants