Skip to content

[params 6/13] rj_planning: remove rj_param_utils - #2593

Open
yuvrajdhadwal wants to merge 3 commits into
params/05-strategyfrom
params/06-planning
Open

yuvrajdhadwal wants to merge 3 commits into
params/05-strategyfrom
params/06-planning

Conversation

@yuvrajdhadwal

@yuvrajdhadwal yuvrajdhadwal commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Description

Removes rj_param_utils from rj_planning.

  • Dead params removed:
    • escape.* (unused since main removed RRT).
    • Six collect.* values nothing has read since before this migration: control_accel_scale, dist_cutoff_to_approach, stop_dist_scale, target_point_lowpass_gain, vel_cutoff_to_control and velocity_control_scale.
    • Added basic callbacks to allow param changes to propagate during operation

⚠️ Claude says review this: constraints.max_translational_speed has no effect

The per-play-state speed cap in make_request replaces the max speed rather than capping it, as it always has. So this param is ignored: real_params.yaml sets it to 1.0, but robots actually run at 1.4. This PR keeps that behavior and adds a comment. Switching to min(configured, cap) would slow real robots to 1.0, so that's a team decision.

@yuvrajdhadwal
yuvrajdhadwal added this pull request to stack #2598 October 12, 2026 00:12
@yuvrajdhadwal yuvrajdhadwal changed the title [params 6/6] rj_planning: remove rj_param_utils [params 6/10] rj_planning: remove rj_param_utils Oct 12, 2026
@yuvrajdhadwal yuvrajdhadwal changed the title [params 6/10] rj_planning: remove rj_param_utils [params 6/11] rj_planning: remove rj_param_utils Oct 12, 2026
@yuvrajdhadwal yuvrajdhadwal changed the title [params 6/11] rj_planning: remove rj_param_utils [params 6/12] rj_planning: remove rj_param_utils Oct 12, 2026
@yuvrajdhadwal yuvrajdhadwal changed the title [params 6/12] rj_planning: remove rj_param_utils [params 6/13] rj_planning: remove rj_param_utils Oct 12, 2026
@yuvrajdhadwal
yuvrajdhadwal marked this pull request as ready for review October 12, 2026 14:44
@jvogt23
jvogt23 force-pushed the params/06-planning branch from c16c373 to 4fafbc5 Compare October 14, 2026 00:23
@jvogt23
jvogt23 force-pushed the params/06-planning branch from 4fafbc5 to 61f960e Compare October 14, 2026 01:23

@shourikb shourikb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few dependencies on rj_utils which is gone now and a minor comment, other than that looks good.

};

struct PivotParams {
double radius_multiplier;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have a comment of what this is used for? Do we really need a struct for one variable?

Comment thread src/rj_planning/CMakeLists.txt Outdated
find_package(rj_convert REQUIRED)
find_package(rj_msgs REQUIRED)
find_package(rj_param_utils REQUIRED)
find_package(rj_utils REQUIRED)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rj_utils is gone now. why do we depend on rj_utils here?

Comment thread src/rj_planning/package.xml Outdated
<depend>rj_convert</depend>
<depend>rj_msgs</depend>
<depend>rj_param_utils</depend>
<depend>rj_utils</depend>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as R24

@jvogt23
jvogt23 force-pushed the params/06-planning branch from a331636 to 1e1a7dc Compare October 21, 2026 03:06
yuvrajdhadwal and others added 3 commits October 20, 2026 23:59
Replaces every planning PARAM_* global and deletes planning_params from
rj_param_utils.

- PlannerNode declares every /planner param once at startup
  (load_planning_params) into a PlanningParams struct and shares it
  read-only with each PlannerForRobot. Each PlanRequest carries it and
  planners read request.params, so planners no longer touch the node.
- Replanner::PlanParams takes ReplannerParams + IntermediateParams.
- MotionConstraints, RotationConstraints and RobotConstraints move from
  rj_common to rj_planning.
- Removes dead params: escape.* (unused since main removed RRT) and six
  collect.* values nothing has read since before this migration.
- SettlePathPlanner::invalid() passes intermediate params like the other
  call sites.
- settle_path_planner.hpp includes what it uses (it relied on unity-build
  batching).
- planner_test loads the params from sim_params.yaml exactly like
  PlannerNode, so it also catches a missing key.

The play-state speed cap still replaces max_translational_speed, as it
always has, so that param has no effect today (see make_request).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jvogt23
jvogt23 force-pushed the params/06-planning branch from 1e1a7dc to 9ab8223 Compare October 21, 2026 04:01

This branch has not been deployed

No deployments
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.

3 participants