Using setMaxVelocityScalingFactor with fanuc_driver_exp

Is it possible to use setMaxVelocityScalingFactor with fanuc_driver_exp ? I have tried to set it to a really low value to see it had any effect but it doesn't seem to work. If that cannot be used, what would be a quick way to limit the maximum velocity?

If it matters, I am trying this on Fanuc lrmate 200ic (v 7.70).

Thanks!

edit retag close merge delete

Sort by » oldest newest most voted

setMaxVelocityScalingFactor(..) is a MoveIt function that influences the eventual time-parameterisation of the path.

It does not directly influence fanuc_driver_exp (or any other robot driver for that matter).

What it does do is change the maximum velocity that should appear in the trajectory that is the result of the time-parameterisation of the path.

Now whether a receiving driver is able to faithfully execute that trajectory is something else entirely, and for fanuc_driver_exp there is even a note in the readme about this (from here):

tries to adhere to commanded velocity constraints on trajectory segments (but will most likely fail)

Having said that, a very slow trajectory should result in slower execution, even if the driver will not be able to actually execute the trajectory completely as it is specified.

If you can provide two wireshark captures of traffic between your ROS pc and the controller (one with a regular trajectory and another when you've used setMaxVelocityScalingFactor(..)) we can see whether at least all the infrastructure on the ROS side is functioning correctly.

more