Moving

Description

Use a hysteresis on robot position to know whether the robot is moving.

Parameters

ParameterDescriptionTypeDefault
odom_topicTopic from where odom is used to know if the robot is movingstr"/odom"
speed_thresholdSpeed threshold used in the hysteresisfloat0.2
count_limitCounter to know if the robot is movingint8
count_hysteresisHysteresis counterint5

Configuration

Only record camera images while the robot is stationary (dc_demos/params/qrcodes_stdout.yaml):

measurement_server:
  ros__parameters:
    condition_plugins: ["moving"]
    moving:
      plugin: "dc_conditions/Moving"
    right_camera:
      plugin: "dc_measurements/Camera"
      if_none_conditions: ["moving"]
      topic_output: "/dc/measurement/right_camera"
      cam_topic: "/right_intel_realsense_r200_depth/image_raw"