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

moveit default_velocity_scaling_factor is ignored #210

Open
JonasTietz opened this issue Sep 23, 2020 · 3 comments
Open

moveit default_velocity_scaling_factor is ignored #210

JonasTietz opened this issue Sep 23, 2020 · 3 comments

Comments

@JonasTietz
Copy link

Hello,
I noticed that the default_velocity_scaling_factor is ignored when planning trajectories with the pipeline planner, which is suprising at least. Especially if you tuned the joint_limits.yaml to be save at the default_velocity_scaling_factor.

@rhaschke
Copy link
Contributor

Configurable scaling factors were introduced in moveit/moveit#1890 after the corresponding MTC code was written. In MTC, the scaling factors are configured as (constant) properties here:
https://github.com/ros-planning/moveit_task_constructor/blob/d3b878a31c63a5ceaead481b9c536cff929a9941/core/src/solvers/planner_interface.cpp#L45-L49

A pull request replacing this by a lookup of default scaling factors from ROS parameters is highly welcome.
I'm not yet sure how to pass the move_group's namespace to access the correct parameters though.

@v4hn
Copy link
Contributor

v4hn commented Sep 24, 2020

I discussed this with @JonasTietz yesterday and was wondering whether we want to support this in MTC at all.
You are right, we can add support for this to the PlannerInterface classes, but doing so will ignore all custom stages and that might be more surprising than leaving it out everywhere.

We could also tackle this by making time parameterization an explicit parameter in each stage, additionally supporting different algorithms for that. I'm not sure I like the associated overhead though and it would add more parameters if you want to auto compute a "correct" dynamics profile for some stages, but allow the stage to compute their own profile if they know better (pouring is a good example for this :))

Lastly, we could also add default properties for this similar to the marker_ns property.

@rhaschke
Copy link
Contributor

Actually, I like the idea of adding time parameterization as an explicit, configurable property of stages. Some stages, e.g. the Merger or merger Connect stages, don't have time parameterization (or it is hardcoded for a specific method).
But I agree, that only configuring this for PlannerInterface classes, might be not sufficient.

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

No branches or pull requests

3 participants