IFL-CAMP / iiwa_stack

ROS integration for the KUKA LBR IIWA R800/R820 (7/14 Kg).
Other
337 stars 250 forks source link

Support for CartesianVelocity command #78

Open SalvoVirga opened 7 years ago

SalvoVirga commented 7 years ago

as title

bogdan-paulis commented 7 years ago

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.

SalvoVirga commented 7 years ago

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.

bogdan-paulis commented 7 years ago

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.

lyh458 commented 3 years ago

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!

MShields1986 commented 1 year ago

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