navigate-to
できること
このスキルは、CARLAシミュレーションの車を選んだ場所まで走らせます。車に特定の場所まで自分で向かわせたい人向けです。
使う場面
- ✓自車を特定の場所まで運転させたいとき。
- ✓車を動かさずに、2地点の間のルートを計画したいとき。
- ✓途中で信号に従うか無視するかを決めたいとき。
スキルのリンク
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/navigate-to/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“自車を座標-24, -57の交差点まで運転させ、到着したら停止させてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはルートを計画し、その後、ナビゲーションエージェントがルートに従い、障害物を避け、あなたが無視を頼まない限り信号に従うループを実行します。ループは到着するか、タイムアウトすると終了します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Navigate a vehicle to a destination
Paths.
scripts/…andreferences/…below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.
Point-to-point autonomous driving. go drives the ego to a destination with a
navigation agent that plans a route and follows it while avoiding obstacles and
obeying (or ignoring, on request) traffic lights. route just plans the path.
This is distinct from the sibling driving skills: control-vehicle
is manual actuator input; control-traffic is the
Traffic Manager making cars roam; this drives one car to a specific place.
Instructions
Progress:
- [ ] Step 1: Check prerequisites (bash scripts/check_env.sh), clear FAILs (incl. agents import)
- [ ] Step 2: Have an ego (spawn-vehicles ego) and a destination (world-data/map-waypoints)
- [ ] Step 3: go (drive) — or route (plan only). Runs a tick loop until arrival/timeout
Commands need CARLA_HOST/CARLA_PORT + CARLA_ROOT from scripts/env.sh.
Negative coordinates: use the = form (--to=-24,-57,0.6).
Step 1: Check prerequisites
bash scripts/check_env.sh
FAILs if the agents package isn't importable — set CARLA_ROOT to a carla
checkout so PythonAPI/carla/agents is on PYTHONPATH.
Step 3: Navigate
source scripts/env.sh
# plan a route and draw it (no driving)
python3 scripts/navigate.py route --from=0,0,1 --to=-24,-57,1 --draw
# drive the ego there (BasicAgent, obeys lights)
python3 scripts/navigate.py go --to=-24,-57,1 --speed 25
# a cautious/aggressive style
python3 scripts/navigate.py go --to=-24,-57,1 --agent behavior --behavior aggressive
# ignore lights (e.g. an emergency run) and give it more time
python3 scripts/navigate.py go --to=100,20,1 --ignore-lights --seconds 120
go targets the ego (role hero) by default; --id/--filter for another
vehicle. It blocks until the car arrives (agent.done()) or --seconds elapses.
Examples
Example 1: drive to a spot
User says: "drive the ego to (−24, −57)"
go --to=-24,-57,1. It plans, drives, and prints "arrived" on success.
Example 2: go to a resolved element
User says: "drive to the 4-way junction in the middle"
map-waypoints junctions --arms 4 → pick its centre → go --to=<centre>.
Example 3: just the route
User says: "what's the route from here to the depot?"
route --from=<here> --to=<depot> --draw → maneuver list + drawn path.
Troubleshooting
Problem: cannot import agents
Cause: the agents package (checkout-only) isn't on PYTHONPATH.
Solution: set CARLA_ROOT to a carla checkout; env.sh adds PythonAPI/carla.
Problem: it never arrives / stops at timeout
Cause: unreachable destination, too little time, or stuck in traffic.
Solution: verify the destination is on a road (map-waypoints waypoint), raise
--seconds, or --ignore-vehicles to push through.
Problem: the car doesn't move in sync mode
Cause: go ticks the world itself in sync mode; if another process also ticks,
they fight.
Solution: run one ticker. In async it just drives.
Problem: it stops at every red light forever
Cause: dense traffic / lights.
Solution: --ignore-lights (and/or the control-traffic-lights skill to free them).
Outputs
Server state — the vehicle drives to the destination (or a planned route + drawn
overlay for route). No file. go reports arrival or timeout.
Detail (agent types, route planner, run-step loop, sync interaction) in references/navigation.md.
よくある質問
車がいつまでも到着しない場合は?
タイムアウトでループが終わるため、実行が永遠に続くことはありません。
手動運転と同じですか?
いいえ。手動制御は直接の入力を送りますが、このスキルは移動全体にナビゲーションエージェントを使います。
運転せずにルートを計画するには?
ルートのコマンドが2地点の間の経路を計画しますが、車は動きません。
詳細
作者による元の説明
Drives a vehicle to a destination autonomously using CARLA's navigation agents (BasicAgent/BehaviorAgent/ConstantVelocityAgent), or plans a route between two points with GlobalRoutePlanner. The agent handles routing, obstacle avoidance and traffic-light obedience. Use when the user asks to "drive the ego to (x,y,z)", "navigate to the junction", "go to that location", "plan a route from A to B", or "make the car drive itself somewhere specific". Manual control is control-vehicle; autopilot roaming is control-traffic.
repo: carla-simulator/carla
人気
- GitHubのスター
- 15k
- ランキング
- #11095
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
create-leaderboard-route
15kエージェントが、シミュレーターのカメラでウェイポイントとシナリオのトリガーを配置し、CARLA Leaderboardのルートファイルを作成・確認できるよう支援します。
package-leaderboard-agent
15kエージェントが、ドライビングエージェントをCARLA Leaderboardへの提出用のDockerイメージにまとめられるよう支援します。フォルダ構成の確認と読み込みテストを行います。
read-leaderboard-results
15kエージェントが、CARLA Leaderboardの結果ファイルを読み、各ルートの得点と違反を説明し、別のルールのバージョンで実行結果を再採点できるよう支援します。
run-leaderboard-evaluation
15kエージェントが、ドライビングエージェントを使って一連のルートでCARLA Leaderboardの評価ツールを実行できるよう支援します。実行前に設定を確認し、再開可能なチェックポイントを保存します。