Langsung ke konten
Skillpedia
Lain-lain15k Β· #11095

navigate-to

Fungsinya

Skill ini mengirim mobil ke tempat yang Anda pilih dalam simulasi CARLA. Untuk orang yang ingin mobil berkendara sendiri ke lokasi tertentu.

Kapan dipakai

  • βœ“Saat Anda ingin mobil ego dikemudikan ke lokasi tertentu.
  • βœ“Saat Anda ingin merencanakan rute antara dua titik tanpa mengemudi.
  • βœ“Saat Anda ingin mobil mematuhi atau mengabaikan lampu lalu lintas di sepanjang jalan.

Link skill

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/navigate-to/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/python-api/navigate-to/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œKemudikan mobil ego ke persimpangan di minus 24, minus 57, dan berhenti saat tiba.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent merencanakan rute, lalu menjalankan loop tempat agent navigasi mengikuti rute, menghindari rintangan, dan mematuhi lampu lalu lintas kecuali Anda meminta untuk diabaikan. Loop berakhir saat tiba atau saat waktu habis.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Navigate a vehicle to a destination

Paths. scripts/… and references/… 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.

Pertanyaan umum

Apa yang terjadi jika mobil tidak pernah tiba?

Loop berakhir saat waktu habis, sehingga run tidak berlanjut selamanya.

Apakah ini sama dengan berkendara manual?

Tidak. Kendali manual mengirim masukan langsung, sedangkan skill ini memakai agent navigasi untuk seluruh perjalanan.

Bagaimana cara merencanakan rute tanpa mengemudi?

Perintah rute merencanakan jalur antara dua titik dan tidak menggerakkan mobil.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
15k
Peringkat
#11095
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa