Ask Your Question

Is it possible to change PID parameters of 6 motors silmutaneously(in a single launch file)?)

asked 2018-02-25 20:54:55 -0600

ryan gravatar image

Hi everyone, i'm trying to control a 6 dof robot arms using 6 dynamixel motors(MX series). The only way i know to tune PID parameters is to launch dynamixel_workbench_single_manager. However, i may only tune the parameters one by another and cause a time-waste. So i'm searching a way to tune multi-motors parameters. Is it possible or where can i find the source to realize this.

edit retag flag offensive close merge delete


Can you be more specific ? Like do you want to share the same configuration with all your motors ? It looks like you have to create a launch file to define all your parameters.

Delb gravatar imageDelb ( 2018-02-26 02:39:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-26 05:15:06 -0600

Darby Lim gravatar image

Hello :)

Thank you for your inquiry about dynamixel_workbench.

You can change parameters of multi-dynamixels using SyncWrite function.

If you look at line 56 in torque control example, 'Goal_Current' parameter are added to syncwrite handler. You can change it as 'P_Gain' or 'D_Gain' and write gain to the dynamixels by syncWrite function simultaneously.(line 152 in same example)

Best regards Darby

edit flag offensive delete link more


Well this launch isn't doing what you want ?

Delb gravatar imageDelb ( 2018-02-26 06:25:31 -0600 )edit

Thanks a lot :)) However, i have just encountered another error. When i launch the torque_control file, after the model and id popped out, the process died immediately. How come?? :(

ryan gravatar imageryan ( 2018-03-01 07:47:45 -0600 )edit

What are you launching exactly ? torque_control.cpp or torque_control.launch ?

Delb gravatar imageDelb ( 2018-03-02 02:24:30 -0600 )edit

torque_control.launch exactly.

ryan gravatar imageryan ( 2018-03-02 05:48:12 -0600 )edit

Well since it's just a simple launcher for the torque node it means that you might have a problem with your parameters, check with ls /dev/input if your devices are well connected.

Delb gravatar imageDelb ( 2018-03-02 06:33:18 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-02-25 20:54:55 -0600

Seen: 110 times

Last updated: Feb 26 '18