Repository navigation
Refactor/namespace #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,42 +1,54 @@ | ||
| Language: Cpp | ||
| BasedOnStyle: LLVM | ||
|
|
||
| BasedOnStyle: WebKit | ||
|
|
||
| # 使用空格而不是 Tab | ||
| # RMCS uses spaces and four-space indentation. | ||
| UseTab: Never | ||
|
|
||
| # 缩进 4 字符 | ||
| IndentWidth: 4 | ||
| TabWidth: 4 | ||
|
|
||
| # 访问修饰符(public)等靠左对齐 | ||
| ContinuationIndentWidth: 4 | ||
| ConstructorInitializerIndentWidth: 4 | ||
| AccessModifierOffset: -4 | ||
|
|
||
| # 注释不对齐 | ||
| AlignTrailingComments: false | ||
|
|
||
| # 大括号的换行规则 | ||
| BreakBeforeBraces: Attach | ||
|
|
||
| # 模板定义的换行规则 | ||
| BreakTemplateDeclarations: "Yes" | ||
|
|
||
| # 最大列宽度 | ||
| Standard: c++23 | ||
| ColumnLimit: 100 | ||
| MaxEmptyLinesToKeep: 1 | ||
|
|
||
| # 是否允许短的函数,语句块等单独一行 | ||
| AllowShortIfStatementsOnASingleLine: AllIfsAndElse | ||
| AllowShortBlocksOnASingleLine: Empty | ||
| AllowShortFunctionsOnASingleLine: All | ||
|
|
||
| BreakBeforeBraces: Attach | ||
| BreakConstructorInitializers: BeforeComma | ||
| BreakInheritanceList: BeforeComma | ||
| BreakBeforeBinaryOperators: NonAssignment | ||
| PenaltyBreakAssignment: 2 | ||
| PenaltyBreakString: 2 | ||
|
|
||
| AlignAfterOpenBracket: AlwaysBreak | ||
| AlignOperands: AlignAfterOperator | ||
| AlignTrailingComments: | ||
| Kind: Always | ||
| OverEmptyLines: 64 | ||
| AlignConsecutiveAssignments: | ||
| Enabled: false | ||
| AlignConsecutiveBitFields: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: false | ||
| AlignConsecutiveDeclarations: | ||
| Enabled: false | ||
| AlignConsecutiveMacros: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: false | ||
| AlignCompound: false | ||
|
|
||
| SpaceInEmptyBlock: true | ||
| PointerAlignment: Left | ||
| IndentPPDirectives: AfterHash | ||
| PPIndentWidth: 1 | ||
| IndentWrappedFunctionNames: true | ||
|
|
||
| AllowAllArgumentsOnNextLine: true | ||
| AllowAllParametersOfDeclarationOnNextLine: true | ||
| AllowShortBlocksOnASingleLine: Empty | ||
| AllowShortCaseLabelsOnASingleLine: true | ||
|
|
||
| FixNamespaceComments: true | ||
| IncludeBlocks: Preserve | ||
|
|
||
| AlwaysBreakTemplateDeclarations: Yes | ||
| IndentRequiresClause: false | ||
| RequiresClausePosition: SingleLine |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,8 @@ rmcs_executor: | |
| components: | ||
| - rmcs_core::hardware::WheelLegInfantryRL -> wheel_leg_infantry_rl | ||
| - rmcs_core::controller::chassis::WheelLegChassisController -> wheel_leg_chassis_controller | ||
| - rmcs::rl::RlBridge -> rl_bridge | ||
| - rmcs::rl::PolicyServer -> policy_server | ||
| - rmcs_rl::RlBridge -> rl_bridge | ||
| - rmcs_rl::PolicyServerLauncher -> policy_server_launcher | ||
|
|
||
| wheel_leg_infantry_rl: | ||
| ros__parameters: | ||
|
|
@@ -48,7 +48,7 @@ rl_bridge: | |
| joint_velocity_suffix: "/velocity" | ||
| joint_torque_suffix: "/torque" | ||
| default_joint_pos: | ||
| left_hip_joint: -0.5v | ||
| left_hip_joint: -0.5 | ||
| left_knee_joint: -0.35 | ||
| left_wheel: 0.0 | ||
| right_hip_joint: 0.5 | ||
|
|
@@ -86,3 +86,14 @@ policy_server: | |
| normalization_from_metadata: true | ||
| publish_status: false | ||
| status_rate: 2.0 | ||
|
|
||
| # 由 executor 进程内组件随 rmcs 一起拉起 policy_server(不改 bringup/launch/服务)。 | ||
| # params_file 相对 share/rmcs_bringup/config 解析,也可写绝对路径; | ||
| # 复制本模板到 rmcs_bringup/config/<robot>.yaml 后,改成那个文件名。 | ||
| policy_server_launcher: | ||
| ros__parameters: | ||
| autostart: true | ||
| params_file: "executor.yaml" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '40,60p' README.md
sed -n '82,104p' config/executor.yaml
sed -n '25,65p' src/policy_server_launcher.cpp
sed -n '110,145p' src/policy_server_launcher.cppRepository: Alliance-Algorithm/rmcs_rl Length of output: 4135 🏁 Script executed: rg -n -C 3 'policy_server|launcher|params_file|rmcs_executor|--params-file' README.md planning/docs/deployment.md config/executor.yaml src/policy_server_launcher.cppRepository: Alliance-Algorithm/rmcs_rl Length of output: 13195 🏁 Script executed: git ls-files | rg -i '(^|/)(readme[^/]*|[^/]*deploy[^/]*)($|\\.)|deploy' | head -80Repository: Alliance-Algorithm/rmcs_rl Length of output: 174 将 仅启动 executor 并依赖 🤖 Prompt for AI Agents |
||
| respawn: true | ||
| respawn_delay: 1.0 | ||
| poll_interval: 0.5 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| std_msgs/Header header # stamp = 采样时刻(桥填 ROS 时间);frame_id 留空 | ||
| uint64 obs_seq # 单调递增的观测序号,桥生成 | ||
| uint64 layout_hash # 桥按 YAML 词条算出的合同指纹(FNV-1a64,见 doc/bridge-design.md §6.2) | ||
| uint64 layout_hash # 桥按 YAML 词条算出的合同指纹(FNV-1a64,见 planning/docs/bridge-design.md §6.2) | ||
| float64[] obs # 长度 == obs_size |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,4 @@ | ||
| <library path="rmcs_rl_bridge"> | ||
| <class type="rmcs::rl::RlBridge" base_class_type="rmcs_executor::Component" /> | ||
| <class type="rmcs::rl::PolicyServerLauncher" base_class_type="rmcs_executor::Component" /> | ||
| </library> | ||
| <library path="rmcs_rl_legacy"> | ||
| <class type="rmcs::rl::RlController" base_class_type="rmcs_executor::Component" /> | ||
| <class type="rmcs_rl::RlBridge" base_class_type="rmcs_executor::Component" /> | ||
| <class type="rmcs_rl::PolicyServerLauncher" base_class_type="rmcs_executor::Component" /> | ||
| </library> |
Uh oh!
There was an error while loading. Please reload this page.