Simulink Control Motors
matlab/simulink-agentic-toolkit
Build motor control solutions using Motor Control Blockset for PMSM, induction motors, BLDC, and SynRM.
Add a new motor or drive controller for robot locomotion. An agent skill from lge-ros2/cloisim.
$ npx skills add lge-ros2/cloisim --skill add-motor-controller -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lge-ros2/cloisim add-motor-controller --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/add-motor-controller .claude/skills/add-motor-controller && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-motor-controller" agent skill from https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controller into .claude/skills/add-motor-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-motor-controller", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controllerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add lge-ros2/cloisim --skill add-motor-controller -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lge-ros2/cloisim add-motor-controller --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/add-motor-controller .agents/skills/add-motor-controller && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-motor-controller" agent skill from https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controller into .agents/skills/add-motor-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-motor-controller", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lge-ros2/cloisim --skill add-motor-controller -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lge-ros2/cloisim add-motor-controller --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/add-motor-controller .cursor/skills/add-motor-controller && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-motor-controller" agent skill from https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controller into .cursor/skills/add-motor-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-motor-controller", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/lge-ros2/cloisim.git --path .github/skills/add-motor-controller--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add lge-ros2/cloisim --skill add-motor-controller -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lge-ros2/cloisim add-motor-controller --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/add-motor-controller .gemini/skills/add-motor-controller && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-motor-controller" agent skill from https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controller into .gemini/skills/add-motor-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-motor-controller", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install lge-ros2/cloisim add-motor-controllerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add lge-ros2/cloisim --skill add-motor-controller -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/add-motor-controller .github/skills/add-motor-controller && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-motor-controller" agent skill from https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controller into .github/skills/add-motor-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-motor-controller", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lge-ros2/cloisim --skill add-motor-controller -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lge-ros2/cloisim add-motor-controller --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lge-ros2/cloisim.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/add-motor-controller .opencode/skills/add-motor-controller && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-motor-controller" agent skill from https://github.com/lge-ros2/cloisim/tree/main/.github/skills/add-motor-controller into .opencode/skills/add-motor-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-motor-controller", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-motor-controllerAdd a new motor or drive controller for robot locomotion. An agent skill from lge-ros2/cloisim.
Add Motor Controller is an agent skill from lge-ros2/cloisim. Add a new motor or drive controller for robot locomotion. Use when: implementing a new drive type (e.g., mecanum, Ackermann, legged), adding a new actuator controller, creating a custom motion model.
Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Unity 6 based multi-robot simulator for ROS 2, SDFormat/SDF, LiDAR, camera, depth, IMU, GPS, and large-scale robotics simulation. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f4c1f0b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are csharp).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Motor Controller loads about 1.4k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 234 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from lge-ros2/cloisim at commit f4c1f0b, republished under its MIT licence (© lge-ros2). 234 words, ~1,350 tokens.
.claude/skills/add-motor-controller/SKILL.md (or your agent's skills folder).Procedure for creating a new drive controller that manages motors and provides odometry for a robot locomotion system.
MicomPlugin (transport bridge)
└── MotorControl (abstract drive controller)
└── Motor[] (per-wheel PID + drive)
└── Articulation (ArticulationBody wrapper)Create Assets/Scripts/Devices/Modules/Motor/MyDriveControl/MyDrive.cs:
/*
* Copyright (c) 2026 LG Electronics Inc.
*
* SPDX-License-Identifier: MIT
*/
using UnityEngine;
namespace SensorDevices
{
public class MyDrive : MotorControl
{
private Odometry _odometry;
public MyDrive(Transform controllerTransform)
: base(controllerTransform)
{
}
public override void SetWheelInfo(in float radius, in float separation)
{
// Store wheel geometry, configure motor constraints
base.SetWheelInfo(radius, separation);
_odometry = new Odometry(wheelRadius, wheelSeparation);
}
public override void Drive(in float linearVelocity, in float angularVelocity)
{
// Convert twist to per-wheel angular velocities
var leftWheelVel = (linearVelocity - angularVelocity * _wheelSeparation / 2f) / _wheelRadius;
var rightWheelVel = (linearVelocity + angularVelocity * _wheelSeparation / 2f) / _wheelRadius;
// Apply to motors
SetMotorVelocity(Location.LEFT, leftWheelVel);
SetMotorVelocity(Location.RIGHT, rightWheelVel);
}
public override bool Update(
out float linearVelocity, out float angularVelocity,
in float duration, in float compensatingRatio = 1f)
{
// Run PID on each motor
foreach (var motor in _motorList.Values)
{
motor.Run(duration);
}
// Compute odometry from wheel encoders
var leftVel = GetMotorVelocity(Location.LEFT);
var rightVel = GetMotorVelocity(Location.RIGHT);
_odometry.Update(leftVel, rightVel, duration);
linearVelocity = _odometry.LinearVelocity;
angularVelocity = _odometry.AngularVelocity;
return true;
}
public override void Reset()
{
base.Reset();
_odometry?.Reset();
}
}
}Each Motor wraps an ArticulationBody joint drive:
// Motor is attached per-wheel via MotorControl.AttachMotor()
motor.SetTargetVelocity(angularVelocityRadPerSec);
motor.Run(fixedDeltaTime); // Applies PID correction
motor.GetVelocity(); // Reads back from ArticulationBody
motor.Stop(); // Zero velocity + reset PIDMotors are indexed by Location:
public enum Location
{
NONE = 0,
LEFT = 1,
RIGHT = 2,
LEFT_REAR = 3,
RIGHT_REAR = 4,
// Add new locations if needed for your drive type
}Each motor has its own PID controller:
motor.SetPID(pGain, iGain, dGain);PID features:
Use Odometry class for dead reckoning:
_odometry = new Odometry(wheelRadius, wheelSeparation);
_odometry.Update(leftWheelVel, rightWheelVel, deltaTime);
// Read back:
_odometry.LinearVelocity;
_odometry.AngularVelocity;
_odometry.Pose; // (x, y, heading)Odometry features:
The MicomPlugin creates the drive controller in its OnStart():
// In MicomPlugin.OnStart() or MicomSensor setup:
_motorControl = new MyDrive(transform);
_motorControl.SetWheelInfo(wheelRadius, wheelSeparation);
_motorControl.AttachMotor(Location.LEFT, leftWheelLink);
_motorControl.AttachMotor(Location.RIGHT, rightWheelLink);The plugin's FixedUpdate() calls _motorControl.Update() and the RX handler calls _motorControl.Drive().
For 4-wheel or multi-axle robots, use additional Location values and compute individual wheel velocities accounting for all axles:
public override void Drive(in float linearVelocity, in float angularVelocity)
{
// Front axle
SetMotorVelocity(Location.LEFT, frontLeftVel);
SetMotorVelocity(Location.RIGHT, frontRightVel);
// Rear axle
SetMotorVelocity(Location.LEFT_REAR, rearLeftVel);
SetMotorVelocity(Location.RIGHT_REAR, rearRightVel);
}MotorControlSetWheelInfo() configures geometry and creates OdometryDrive() converts twist to per-wheel velocitiesUpdate() runs PID on each motor, updates odometry, returns linear/angular velocityReset() calls base.Reset() and resets odometryAttachMotor() with correct Location mapping© lge-ros2, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/add-motor-controller of lge-ros2/cloisim.
Open the folder on GitHubat commit f4c1f0b
Add Motor Controller next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Motor Controller this skilllge-ros2/cloisim | 176 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Simulink Control Motorsmatlab/simulink-agentic-toolkit | 1.2k | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Control UIopenclaw/openclaw | 392k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Motor Foc ControlLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.5k | Automated safety check: Pass | MIT | |
| Control UI E2Eopenclaw/openclaw | 392k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Feishu Driveopenclaw/openclaw | 392k | — | ~375 | Automated safety check: Pass | MIT |
matlab/simulink-agentic-toolkit
Build motor control solutions using Motor Control Blockset for PMSM, induction motors, BLDC, and SynRM.
openclaw/openclaw
Operate and troubleshoot the OpenClaw Control UI: navigate connected clients, organize sessions, build session dashboards, and handle direct or Tailscale-hosted Gateways.
LeoYeAI/openclaw-master-skills
FOC磁场定向控制深度指南 | 深入讲解FOC原理、SVPWM、MTPA、弱磁控制、龙贝格观测器,配合实测案例、C代码和PI整定脚本
openclaw/openclaw
A skill your agent uses when designing, testing, fixing, or extending the OpenClaw Control UI GUI, including UI stress-test galleries with feedback inputs, Vitest + Playwright end-to-end checks…
openclaw/openclaw
Feishu cloud-storage and comment workflows. An agent skill from openclaw/openclaw.
thedaviddias/Front-End-Checklist
A skill your agent uses when applies to sites that use both robots.txt disallow rules and meta robots noindex tags.
lge-ros2/cloisim
Add or modify SDF actors with skeletal animation and waypoint-based navigation.
lge-ros2/cloisim
Add a new compute or surface shader for sensor data processing or visualization.
lge-ros2/cloisim
Import 3D mesh files into CLOiSim via the Assimp pipeline, including collision generation and procedural meshes.
lge-ros2/cloisim
Add a new CLOiSimPlugin for bridging a device to the ROS 2 transport layer.
lge-ros2/cloisim
Add a new sensor device to CLOiSim, including the Device subclass, SDF pipeline wiring, and transport plugin.
lge-ros2/cloisim
Add a custom noise model for sensor data simulation. An agent skill from lge-ros2/cloisim.
Add a new motor or drive controller for robot locomotion. An agent skill from lge-ros2/cloisim. Add Motor Controller is an agent skill from lge-ros2/cloisim. Add a new motor or drive controller for robot locomotion.
Add Motor Controller fits situations like: : implementing a new drive type (e.g; adding a new actuator controller; creating a custom motion model.
Run `npx skills add lge-ros2/cloisim --skill add-motor-controller -a claude-code`. Or copy the skill folder (.github/skills/add-motor-controller in lge-ros2/cloisim) into .claude/skills/add-motor-controller in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lge-ros2/cloisim --skill add-motor-controller -a codex`. Or copy the skill folder (.github/skills/add-motor-controller in lge-ros2/cloisim) into .agents/skills/add-motor-controller in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lge-ros2/cloisim --skill add-motor-controller -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-motor-controller, .gemini/skills/add-motor-controller, .github/skills/add-motor-controller and .opencode/skills/add-motor-controller in your project.
SKILL.md names no scripts, command-line tools or credentials: Add Motor Controller is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Motor Controller is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Motor Controller: Simulink Control Motors (matlab/simulink-agentic-toolkit, 1.2k stars), Control UI (openclaw/openclaw, 392k stars), Motor Foc Control (LeoYeAI/openclaw-master-skills, 2.2k stars) and Control UI E2E (openclaw/openclaw, 392k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lge-ros2 (a GitHub organization) maintains it in lge-ros2/cloisim, which has 176 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 6, 2026.
Source: lge-ros2/cloisim on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.