My use case does not need to follow real world robot joint velocity.
I am using the default pickAndPlace Controller for UR10. It takes about 18 seconds to finish a single pick and place. I try to tune the event dt. and make the MaxJointVelocity bigger in the USD asset for the robot. but the robot cannot get to the desired position within the provided time. what else should I modify? The URDF file?
The main algorithm used in the PickAndPlaceController to move around is RMPflow
The PickAndPlaceController adds logic on where the robot should move (put the gripper above a block), and RMPflow takes care of moving it there. As such, it is by tuning the parameters of RMPflow that you can get the robot to move more quickly. RMPflow parameters can be a bit confusing, but there is a tuning guide here. RMPflow parameters are stored in a yaml that gets loaded at runtime. To make a robot generally move faster, you can increase the target_rmp -> accel_p_gain parameter.
Unfortunately, the UR10 PickAndPlace code is a bit out of date with things in Isaac Sim, and it does not allow the user to easily get into the config files and change the settings around. And I don’t want to confuse things by giving you a hacky solution. Instead, I suggest you look at the RMPflow Tutorial to see how you can get the robot moving around and following a target with direct access to the underlying config files.
In that tutorial, you will see a code snippet like this:
This snippet initializes RMPflow using config files that are within Isaac Sim. You can add a print statement print(rmp_config_dir) and then go to that directory on your computer. There is a folder with configs for the UR10, and you can copy/paste them to a local directory and reference your new files instead.
Your next steps really depend on your goals. If you really want to use the PickAndPlaceController with your custom RMPflow controller, I can explain to you how. But the PickAndPlace controller is an example more than a supported workflow, and it is probably not your best way into Isaac Sim. What are your goals with getting started in Isaac Sim?
For this project, I am using the pick and place controller to implement some of my motion primitives. I actually have been using Isaac sim for about a year. So basically I just need to tune the rmpflow parameters?
Yes I think so. To change the RMPflow parameters for the UR10 PickAndPlace Controller, you’ll have to modify omni.isaac.universal_robots.controllers.rmpflow_controller.py Specifically, there is the line
mg.interface_config_loader() is returning a dict of RMPflow parameters that are passed in as arguments. So you can replace the rmpflow_config_path argument with your own local file. Start with the RMPflow parameters that are already set for the UR10 by printing out the path that is returned by interface_config_loader and copying the file. (Or modify the parameter file directly, but I’m just trying to give you a good degree of separation of where your code lives).