Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimise Cartesian path length #123

Open
blooop opened this issue Aug 8, 2019 · 2 comments
Open

Minimise Cartesian path length #123

blooop opened this issue Aug 8, 2019 · 2 comments

Comments

@blooop
Copy link

blooop commented Aug 8, 2019

So far I've been using cart_vel and and joint_vel constraints to minimise the path length.

  {
        "type": "joint_vel",
        "params":
            {
                "targets": [0],
                "coeffs": [1]
            }
    }
    {
        "type": "cart_vel",
        "name": "cart_vel",
        "params": {
            "max_displacement": .15,
            "first_step": 0,
            "last_step": self.n_steps - 1,  # inclusive
            "link": ee
    }
 

I've had a look in the code for a constraint to minimise the Cartesian path length but the closest I've found is "type": "cart_pose" which has a completely different use. I would expect it to be called cart_pos and operate in the same way as cart_vel.

Does this type of constraint exist?

Thanks,
Austin

@mpowelson
Copy link
Contributor

Cartesian velocity should minimize cartesian path length as it just assumes the timestep is 1. That said, I have not personally used it too much. It looks like the coeffs are not exposed for that cost at the moment. If it is not working, that could be the issue. They are set to all ones in problem_description at prob.addCost

If you want to set a true cartesian velocity, you would need to set TT_USE_TIME, but time parameterization has been implemented for cartesian moves yet.

@blooop
Copy link
Author

blooop commented Sep 15, 2019

Thanks, I will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants