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

slowly moving after enabling #100

Open
wjx1991 opened this issue Dec 23, 2023 · 6 comments
Open

slowly moving after enabling #100

wjx1991 opened this issue Dec 23, 2023 · 6 comments

Comments

@wjx1991
Copy link

wjx1991 commented Dec 23, 2023

Hi all,
after running the code, the motor is enabled, but at the same the motor is moving slowly. I can't understand why the motor moves because I doesn't send position command in the code. When i use moveit2, it has errors :

[move_group-2] [ERROR] [1705040062.478931631] [moveit_ros.trajectory_execution_manager]:
[move_group-2] Invalid Trajectory: start point deviates from current robot state more than 0.01
[move_group-2] joint 'joint1': expected: -1.34498, current: 1.46192

Is this error caused by the motion of the motor?

@wjx1991 wjx1991 changed the title control motors to move After enabling the motor, arm starts moving randomly immediately. Dec 28, 2023
@wjx1991 wjx1991 changed the title After enabling the motor, arm starts moving randomly immediately. After enabling the motor, arm starts moving randomly Dec 28, 2023
@wjx1991 wjx1991 changed the title After enabling the motor, arm starts moving randomly After enabling the motor, arm starts moving irregularly Dec 28, 2023
@wjx1991 wjx1991 changed the title After enabling the motor, arm starts moving irregularly After enabling the motor, arm in rviz moving irregularly Dec 28, 2023
@wjx1991 wjx1991 changed the title After enabling the motor, arm in rviz moving irregularly slowly moving after enabling Jan 12, 2024
@jaronski
Copy link

Hi wjx1991,
I guess you ran into the same problem i had with the ethercat_driver_ros2. Motor is slowly moving out of its default position? As i investigated while debugging the ethercat_driver i noticed that when starting the system inside of the code (// setup current position as default position) was getting called over and over again updating the default position by the "new" position resulting from the noise of the encoder values. After system got initialized and started i sent a command to the motor and noticed it is holding its position.
The reason for introducing a counter is only to manage the "setup current position as default position" so the default position gets set once and then is waiting" for me to send new positions from moveit2 or from joint_states_publisher_gui or even from the command line.
I know its not an elegant way to solve this issue but for my robot arm it works and i am waiting for the maintainers to come up with an alternative solution.

hope this helps and if you have further topics you would like to exchange maybe we can meet on discord

@wjx1991
Copy link
Author

wjx1991 commented Jan 12, 2024

Hi wjx1991, I guess you ran into the same problem i had with the ethercat_driver_ros2. Motor is slowly moving out of its default position? As i investigated while debugging the ethercat_driver i noticed that when starting the system inside of the code (// setup current position as default position) was getting called over and over again updating the default position by the "new" position resulting from the noise of the encoder values. After system got initialized and started i sent a command to the motor and noticed it is holding its position. The reason for introducing a counter is only to manage the "setup current position as default position" so the default position gets set once and then is waiting" for me to send new positions from moveit2 or from joint_states_publisher_gui or even from the command line. I know its not an elegant way to solve this issue but for my robot arm it works and i am waiting for the maintainers to come up with an alternative solution.

hope this helps and if you have further topics you would like to exchange maybe we can meet on discord

Hi, jaronski, I've been struggling with this issue for several weeks, making it difficult for me to control the robotic arm with moveit2. I have seen the solution you provided, and it indeed works. Now I can use moveit2. Thanks for your excellent solution. I have discord account. I am also looking forward to meet with you on discord.

@wjx1991
Copy link
Author

wjx1991 commented Mar 22, 2024

Hi wjx1991, I guess you ran into the same problem i had with the ethercat_driver_ros2. Motor is slowly moving out of its default position? As i investigated while debugging the ethercat_driver i noticed that when starting the system inside of the code (// setup current position as default position) was getting called over and over again updating the default position by the "new" position resulting from the noise of the encoder values. After system got initialized and started i sent a command to the motor and noticed it is holding its position. The reason for introducing a counter is only to manage the "setup current position as default position" so the default position gets set once and then is waiting" for me to send new positions from moveit2 or from joint_states_publisher_gui or even from the command line. I know its not an elegant way to solve this issue but for my robot arm it works and i am waiting for the maintainers to come up with an alternative solution.

hope this helps and if you have further topics you would like to exchange maybe we can meet on discord

Hi, jaronski, I use the ethercat_driver_ros2 to control my arm of 6 DOF. The slow movement issue is solved by using your solution. Now I develop the Moveit2 package and control the arm to move. New problems occur.

  1. when I send the command by joint_states_publisher_gui, the arm can move slowly and the magnitude is very small.
  2. when i start the system, the arm or the joints jitter.
  3. the real attitude of the arm is not coincide with that in rviz in moveit2
    do you have these problems?
  4. the frequency in your code is 1khz, when i set it as 1khz error happens. could you please, if possible, provide your code .

@jaronski
Copy link

jaronski commented May 8, 2024

Hey @wjx1991 how can i find you on discord?
I might help you better over there

@wjx1991
Copy link
Author

wjx1991 commented May 9, 2024 via email

@wjx1991
Copy link
Author

wjx1991 commented May 11, 2024 via email

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

2 participants