Skip to content

Using flip_for_axis parameter to follow a path by driving backwards #18

Description

@vanem

Is it possible to use this parameter:

flip_for_axis (float, default: None) When enabled, the desired following distance between robot and control point (published on /trajectory) is inverted when the control point moves backwards along the given axis. Depending on the robot, this makes the robot drive backwards when moving in the indicated axis.

To follow a path wit a non-holonomic (dual differential drive robot) by driving backwards? If I do:

    <node name="interpolator" pkg="tracking_pid" type="path_interpolator">
        <param name="target_x_vel" value="0.7"/>
        <param name="target_x_acc" value="100.0"/>
        <param name="flip_for_axis" value="x"/>
    </node>

and then:
roslaunch tracking_pid test_tracking_pid.test rviz:=true

I get no movement and:

[ INFO] - /fake_odometry: [1655821967.503094200] Started mobile robot simulator update loop, listening on cmd_vel topic
[ INFO] - /controller: [1655821967.717553000] Transform between map and base_link found
[ERROR] - /interpolator: [1655821968.183834] SimpleActionServer.internal_goal_callback - exception

Does the path need to be specified differently? Could you give me an example?
Thank you!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions