iiwa_stack icon indicating copy to clipboard operation
iiwa_stack copied to clipboard

Support for CartesianVelocity command

Open SalvoVirga opened this issue 7 years ago • 5 comments

as title

SalvoVirga avatar Jun 30 '17 14:06 SalvoVirga

Does this mean that you are working on Cartesian Velocity control, or just changing the speed for position control? I am interested if there any way to change the default Cartesian Velocity for Position control, during runtime.

bogdan-paulis avatar Aug 31 '17 11:08 bogdan-paulis

Hi, sorry for the very late reply! I'm out of office atm. This specific issue is to add Cartesian Velocity control.

You should be able to change the Cartesian velocity in "classic" position control using the configureSmartServo service. KUKA provides a very strange interface for that, when calling that service you should add CartesianControlModeLimits, there is a max_cartesian_velocity field. If I remember correctly, it would only work when setting Cartesian Impedance mode, if you need precise position control just set the stiffness values to the maximum.

Please feel free to ask / comment more or close the issue if that works.

SalvoVirga avatar Sep 25 '17 01:09 SalvoVirga

Thank you for the reply. I do not really see the difference between setting different values for the max velocity and if the max limit is too low, instead of the robot slowing down, it just gives me an error that the speed limit was exceeded.

bogdan-paulis avatar Sep 26 '17 12:09 bogdan-paulis

Hi, thank you for you awesome works! I am now using the latest version of this package, when I connect to iiwa, I can get the /iiwa/command/CartesianVelocity topic, and I try to publish some message to it, e.g.

rostopic pub -r 100 /iiwa/command/CartesianVelocity geometry_msgs/TwistStamped "header:
  seq: 0
  stamp:
    secs: 0
    nsecs: 0
  frame_id: 'iiwa_link_0'
twist:
  linear:
    x: 0.1
    y: 0.0
    z: 0.0
  angular:
    x: 0.0
    y: 0.0
    z: 0.0" 

but it seems that the robot did not move with what I desired and very slow. Then I try to increase the value to 10, speed seems increased but not smooth

rostopic pub -r 100 /iiwa/command/CartesianVelocity geometry_msgs/TwistStamped "header:
  seq: 0
  stamp:
    secs: 0
    nsecs: 0
  frame_id: 'iiwa_link_0'
twist:
  linear:
    x: 10.0
    y: 0.0
    z: 0.0
  angular:
    x: 0.0
    y: 0.0
    z: 0.0" 

Are there any wrong parameters setting in my demo? What's the default unit of linear (mm/s? m/s?) and angular (radian/s?)? And what is the best frequency that this topic publish at? If possible, could you please provide any updates of the documentation?

Thanks!

lyh458 avatar Jun 15 '21 09:06 lyh458

I've done several tests on this for the linear velocity and it appears to be mm/s, but would let the authors confirm.

MShields1986 avatar Aug 29 '23 10:08 MShields1986