cartesian velocity relation with IPTP vel and acc scaling , trajopt JointVelTermInfo() and CartVelTermInfo() #267
Replies: 1 comment
-
Maybe this doesn't answer your question, but the limitation in TrajOpt when not using time parameterization is that a unit time step is always assumed. ie, instead of v = (x2-x1)/dt we calculate it as v= (x2-x1). This is due to the way the quadratic programs are defined. In practice, when the velocity target is 0, this just tends to make the trajectories smooth rather than jumping back and forth between configurations, etc. It sounds like you are trying to get a specific velocity profile. At the moment I would recommend that you optimize the kinematics with trajopt and the timesteps with something else (like you are doing). I think iterating between IPTP and Trajopt to get the right profile is the wrong way to go about it. I would optimize the kinematics with TrajOpt and then do whatever you need to with the timesteps to make the velocities work out. If you're wanting a special profile that the off the shelf IPTP doesn't give you, you may need to make something custom. Regardless, that's in a different repo, and I don't know enough about that code to help you. I realize it's not a perfect answer, but it's about the best we have right now. I suppose another option would just be to assume a fixed time step and optimize with a really dense trajectory. Then set your velocity, acceleration, jerk limits to be whatever they should be when scaled to a unit time step. Then TrajOpt should give you what you want directly. Just keep in mind that we are taking numeric derivatives, so you'll need pretty dense trajectories for things like acceleration and jerk to be terribly meaningful |
Beta Was this translation helpful? Give feedback.
-
I obtained trajectory by trajopt, then I assign the timestamps and then obtain joint velocities and joint accelerations using IPTP of moveit as shown below . I need to relate cartesian velocity obtained with trajopt parameters and moveit parameters and time stamps. So I can change parameter required for getting the desired velocity.
Parameters defined in trajopt 👍
Parameters defined in moveit:
Obtained Cartesian Velocity profile with the above parameters:
Beta Was this translation helpful? Give feedback.
All reactions