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

Velocity control using ROS 2 #608

Open
Actat opened this issue Oct 24, 2023 · 3 comments
Open

Velocity control using ROS 2 #608

Actat opened this issue Oct 24, 2023 · 3 comments

Comments

@Actat
Copy link

Actat commented Oct 24, 2023

ISSUE TEMPLATE ver. 1.2.0

Please fill this template for more accurate and prompt support.

  1. Which DYNAMIXEL SDK version do you use?
  1. Which programming language/tool do you use?
  • C++, ROS
  1. Which operating system do you use?
  • Ubuntu 20.04
  1. Which USB serial converter do you use?
  • U2D2
  1. Which DYNAMIXEL do you use?
  • XM540-W150
  1. Have you searched the issue from the closed issue threads?
  1. Please describe the issue in detail
    I want to use the dynamixel motor in velocity control mode. I need to get position information during control.
    I was able to run the motor in position control mode from ROS 2 using read_write_node in dynamixel_sdk_examples. However, read_write_node does not support velocity control mode. Is there another node that supports velocity control mode?

  2. How can we reproduce the issue?

@shiba-8ro
Copy link

agreement +1

@Actat
Copy link
Author

Actat commented Nov 9, 2023

I have found an unofficial way to solve my problem.
Is there an official way?

Actat@84d759e

@anasderkaoui
Copy link

Hello @Actat !
Can you please provide us with the full modifications that you did to the code.
I am at the same page, I want to use an MX-106 servo in velocity mode but I cannot get it done. I modified the code accordingly to yours @Actat 84d759e (ADDR_GOAL_VELOCITY 104 and id 1, addresses according to my servomotor) but the motor is still in position mode !
The command lines also seem to control position mode only: ros2 run dynamixel_sdk_examples read_write_node
returns Something like "[GOAL Position: 0]"
The other command also controls position : ros2 topic pub -1 /set_position dynamixel_sdk_custom_interfaces/msg/SetPosition "{id: 12, position: 1000}"
Is there another command that you used other than these ones above ?

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

3 participants