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

[melodic] forward-port generate state db #1253 #1283

Merged
merged 4 commits into from
Dec 24, 2018

Conversation

v4hn
Copy link
Contributor

@v4hn v4hn commented Dec 21, 2018

Forward port of #1253 .

The flags are never checked anyway below, so it does not build
without OpenMP at the moment.
In some situations, it makes sense to define Constraints
via ros parameters to ease configuration or circumvent
repeated definitions.

A constraint can constructed from ROS parameters with the following
structure:

path_constraint:
  name: tool0_upright
  constraints:
  - type: orientation
    frame_id: world
    link_name: tool0
    orientation: [0, 0, 0]
    tolerances: [0.01, 0.01, 3.15]
    weight: 1.0
  - type: joint
    joint_name: pan_joint
    position: 0.0
    tolerance: 1.0
    weight: 1.0
  - type: position
    frame_id: world
    link_name: tool0
    target_offset: [.5,0,1.0]
    region:
      x: [0,2]
      y: [-2,2]
      z: [.5,2.5]
Previously, we only shipped a demo_construct_state_database.cpp
that hard-coded all parameters for a specific setup.

This work generalizes the code and provides a utility that
can be configured via ROS parameters.

Assuming a MoveIt configuration is running,
an example launch file to use the utility might look like this:

<launch>
  <node name="generate_state_database" pkg="moveit_planners_ompl" type="generate_state_database" output="screen">
    <param name="use_current_scene" value="false"/>
    <param name="planning_group" value="arm"/>
    <remap from="~output_folder" to="move_group/constraint_approximations_path"/>

<rosparam ns="constraints">
path_constraint:
  name: tool0_upright
  constraints:
  - type: orientation
    frame_id: world
    link_name: tool0
    orientation: [0, 0, 0]
    tolerances: [0.01, 0.01, 3.15]
    weight: 1.0
</rosparam>

  </node>
</launch>
@rhaschke rhaschke merged commit 62531ef into moveit:melodic-devel Dec 24, 2018
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

Successfully merging this pull request may close these issues.

2 participants