sikang / mpl_ros

A ROS wrapper for trajectory planning based on motion primitives
Apache License 2.0
588 stars 150 forks source link

Wierd trajectory output #15

Open OxDuke opened 5 years ago

OxDuke commented 5 years ago

Hi Sikang, Thank you for sharing your code. I am playing around with different parameters in the file: mpl_ros/mpl_test_node/launch/map_planner_node/test.launch. Specifically, changing start/goal positions and dt. However, sometimes rviz gives wierd trajectories: E.g. with the following setup:

    <!-- Set start and goal -->
    <param name="goal_x" value="3.0"/>
    <param name="goal_y" value="17.0"/>
    <param name="goal_z" value="0.05"/>
    <param name="start_vx" value="0.0"/>
    <param name="start_vy" value="2.0"/>
    <param name="start_vz" value="0.0"/>
    <param name="start_x" value="12.0"/>
    <param name="start_y" value="1.5"/>
    <param name="start_z" value="0.05"/>
    <!-- Set dynamic constraints -->
    <param name="v_max" value="2.0"/>
    <param name="a_max" value="1.0"/>
    <param name="yaw_max" value="0.5"/>
    <param name="u" value="1.0"/>
    <param name="u_yaw" value="0.5"/>
    <param name="dt" value="0.25"/>
    <param name="use_3d" value="true"/>
    <param name="use_yaw" value="false"/>

Rviz gives: Screenshot from 2019-05-11 20-22-22 My questions are:

Thank you for your time, Weidong

sikang commented 5 years ago

Let me take a look, this bug should have been fixed long time ago....

OxDuke commented 5 years ago

Hi Sikang, May I ask if the bug has been solved?