When running the NAV2 bringup, a profile is required in the parameters. It is used to switch between the parameter sets for the nodes used by the NAV2 bringup and it is simply a Python function that locates the relevant parameter files. To check the available profiles, navigate to the lgdxrobot2_bringup/param folder.
Nav2 offers different controller plugins for line following, each using a distinct algorithm. LGDXRobot2 ROS 2 allows switching between the available plugins through profiles.
DWB Controller – This is the default plugin, so specifying a profile is not required.Model Predictive Path Integral Controller (MPPI) – Use loc-mppi as the profile name.Graceful Controller – Use loc-gc as the profile name.Regulated Pure Pursuit Controller – Use loc-rpp as the profile name.param and rviz folders from the lgdxrobot2_bringup package to any folder.param folder, copy any existing folder and rename it using a custom profile name. It is recommended that the name starts with slam- or loc-.param, but ekf.yaml and nav2.yaml are required.rviz folder, copy any RViz configuration file and rename it to match the custom profile name.profiles_path:=<path to custom profiles folder> profile:=<profile_name>.