diff --git a/pr-120/404.html b/pr-120/404.html index 34607b988..1dd191d64 100644 --- a/pr-120/404.html +++ b/pr-120/404.html @@ -1862,6 +1862,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Clock/ClockPublisher/index.html b/pr-120/Components/Clock/ClockPublisher/index.html index 133800fa4..e9d6b91a0 100644 --- a/pr-120/Components/Clock/ClockPublisher/index.html +++ b/pr-120/Components/Clock/ClockPublisher/index.html @@ -1969,6 +1969,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/AWSIMEnvironment/index.html b/pr-120/Components/Environment/AWSIMEnvironment/index.html index c8a98072d..46515150a 100644 --- a/pr-120/Components/Environment/AWSIMEnvironment/index.html +++ b/pr-120/Components/Environment/AWSIMEnvironment/index.html @@ -2051,6 +2051,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/AddNewEnvironment/AddEnvironment/index.html b/pr-120/Components/Environment/AddNewEnvironment/AddEnvironment/index.html index a74069455..7550e43d3 100644 --- a/pr-120/Components/Environment/AddNewEnvironment/AddEnvironment/index.html +++ b/pr-120/Components/Environment/AddNewEnvironment/AddEnvironment/index.html @@ -2015,6 +2015,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddRandomTraffic/index.html b/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddRandomTraffic/index.html index 1eb41472b..5f9f0628b 100644 --- a/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddRandomTraffic/index.html +++ b/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddRandomTraffic/index.html @@ -1945,6 +1945,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddTrafficIntersection/index.html b/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddTrafficIntersection/index.html index f951d48d2..b537957fb 100644 --- a/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddTrafficIntersection/index.html +++ b/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/AddTrafficIntersection/index.html @@ -1960,6 +1960,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/LoadItemsFromLanelet/index.html b/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/LoadItemsFromLanelet/index.html index 9c76fc1b5..a55588751 100644 --- a/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/LoadItemsFromLanelet/index.html +++ b/pr-120/Components/Environment/AddNewEnvironment/AddRandomTraffic/LoadItemsFromLanelet/index.html @@ -2105,6 +2105,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/AddNewEnvironment/AddTrafficLights/index.html b/pr-120/Components/Environment/AddNewEnvironment/AddTrafficLights/index.html index 068fd70a1..066f27cb2 100644 --- a/pr-120/Components/Environment/AddNewEnvironment/AddTrafficLights/index.html +++ b/pr-120/Components/Environment/AddNewEnvironment/AddTrafficLights/index.html @@ -1967,6 +1967,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/CreatePCD/index.html b/pr-120/Components/Environment/CreatePCD/index.html index 9502fad71..472d1eb40 100644 --- a/pr-120/Components/Environment/CreatePCD/index.html +++ b/pr-120/Components/Environment/CreatePCD/index.html @@ -2072,6 +2072,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/LaneletBoundsVisualizer/index.html b/pr-120/Components/Environment/LaneletBoundsVisualizer/index.html index 6d0c80b1c..ec16e3808 100644 --- a/pr-120/Components/Environment/LaneletBoundsVisualizer/index.html +++ b/pr-120/Components/Environment/LaneletBoundsVisualizer/index.html @@ -1931,6 +1931,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/SmokeSimulator/index.html b/pr-120/Components/Environment/SmokeSimulator/index.html index d8f824ca2..4c756fafc 100644 --- a/pr-120/Components/Environment/SmokeSimulator/index.html +++ b/pr-120/Components/Environment/SmokeSimulator/index.html @@ -1931,6 +1931,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Environment/V2I/index.html b/pr-120/Components/Environment/V2I/index.html index 0c2aa9762..6f0a02a00 100644 --- a/pr-120/Components/Environment/V2I/index.html +++ b/pr-120/Components/Environment/V2I/index.html @@ -1973,6 +1973,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/ROS2/AddACustomROS2Message/index.html b/pr-120/Components/ROS2/AddACustomROS2Message/index.html index 913490232..263a53d7c 100644 --- a/pr-120/Components/ROS2/AddACustomROS2Message/index.html +++ b/pr-120/Components/ROS2/AddACustomROS2Message/index.html @@ -1873,6 +1873,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/ROS2/ROS2ForUnity/index.html b/pr-120/Components/ROS2/ROS2ForUnity/index.html index b5b9557c3..75c29f06c 100644 --- a/pr-120/Components/ROS2/ROS2ForUnity/index.html +++ b/pr-120/Components/ROS2/ROS2ForUnity/index.html @@ -1873,6 +1873,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/ROS2/ROS2TopicList/index.html b/pr-120/Components/ROS2/ROS2TopicList/index.html index bb6b63910..bd69b77fd 100644 --- a/pr-120/Components/ROS2/ROS2TopicList/index.html +++ b/pr-120/Components/ROS2/ROS2TopicList/index.html @@ -1873,6 +1873,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/ScenarioSimulation/PreparingTheConnectionBetweenAWSIMAndScenarioSimulator/index.html b/pr-120/Components/ScenarioSimulation/PreparingTheConnectionBetweenAWSIMAndScenarioSimulator/index.html index 4f793ae0c..3e0173c4f 100644 --- a/pr-120/Components/ScenarioSimulation/PreparingTheConnectionBetweenAWSIMAndScenarioSimulator/index.html +++ b/pr-120/Components/ScenarioSimulation/PreparingTheConnectionBetweenAWSIMAndScenarioSimulator/index.html @@ -1873,6 +1873,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/ScenarioSimulation/SetupUnityProjectForScenarioSimulation/index.html b/pr-120/Components/ScenarioSimulation/SetupUnityProjectForScenarioSimulation/index.html index 5c4ee95e2..6a4d562e9 100644 --- a/pr-120/Components/ScenarioSimulation/SetupUnityProjectForScenarioSimulation/index.html +++ b/pr-120/Components/ScenarioSimulation/SetupUnityProjectForScenarioSimulation/index.html @@ -1873,6 +1873,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/CameraSensor/index.html b/pr-120/Components/Sensors/CameraSensor/index.html index 5c6308b00..e625c9e65 100644 --- a/pr-120/Components/Sensors/CameraSensor/index.html +++ b/pr-120/Components/Sensors/CameraSensor/index.html @@ -1988,6 +1988,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/GNSSSensor/index.html b/pr-120/Components/Sensors/GNSSSensor/index.html index 73ec827e1..70aeb8a72 100644 --- a/pr-120/Components/Sensors/GNSSSensor/index.html +++ b/pr-120/Components/Sensors/GNSSSensor/index.html @@ -1997,6 +1997,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/IMUSensor/index.html b/pr-120/Components/Sensors/IMUSensor/index.html index 80580552b..c6937f624 100644 --- a/pr-120/Components/Sensors/IMUSensor/index.html +++ b/pr-120/Components/Sensors/IMUSensor/index.html @@ -1973,6 +1973,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/LiDARSensor/AddNewLiDAR/index.html b/pr-120/Components/Sensors/LiDARSensor/AddNewLiDAR/index.html index 78f8324e8..01cf23af8 100644 --- a/pr-120/Components/Sensors/LiDARSensor/AddNewLiDAR/index.html +++ b/pr-120/Components/Sensors/LiDARSensor/AddNewLiDAR/index.html @@ -1940,6 +1940,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/LiDARSensor/LiDARSensor/index.html b/pr-120/Components/Sensors/LiDARSensor/LiDARSensor/index.html index 14ae052af..03ca6ea05 100644 --- a/pr-120/Components/Sensors/LiDARSensor/LiDARSensor/index.html +++ b/pr-120/Components/Sensors/LiDARSensor/LiDARSensor/index.html @@ -2030,6 +2030,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/LiDARSensor/RGLUnityPlugin/index.html b/pr-120/Components/Sensors/LiDARSensor/RGLUnityPlugin/index.html index d73c493cc..ec8cac152 100644 --- a/pr-120/Components/Sensors/LiDARSensor/RGLUnityPlugin/index.html +++ b/pr-120/Components/Sensors/LiDARSensor/RGLUnityPlugin/index.html @@ -1970,6 +1970,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/LiDARSensor/ReadMaterialInformation/index.html b/pr-120/Components/Sensors/LiDARSensor/ReadMaterialInformation/index.html index 7a24b162f..82d85da3f 100644 --- a/pr-120/Components/Sensors/LiDARSensor/ReadMaterialInformation/index.html +++ b/pr-120/Components/Sensors/LiDARSensor/ReadMaterialInformation/index.html @@ -1942,6 +1942,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Sensors/VehicleStatusSensor/index.html b/pr-120/Components/Sensors/VehicleStatusSensor/index.html index 6ca690c2a..6ce9acf91 100644 --- a/pr-120/Components/Sensors/VehicleStatusSensor/index.html +++ b/pr-120/Components/Sensors/VehicleStatusSensor/index.html @@ -1964,6 +1964,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Traffic/NPCs/Pedestrian/index.html b/pr-120/Components/Traffic/NPCs/Pedestrian/index.html index e532fd748..9896d0ce4 100644 --- a/pr-120/Components/Traffic/NPCs/Pedestrian/index.html +++ b/pr-120/Components/Traffic/NPCs/Pedestrian/index.html @@ -11,7 +11,7 @@ - + @@ -1871,6 +1871,27 @@ + + +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + @@ -2803,7 +2824,7 @@

    Collider - + diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image-1.png b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image-1.png new file mode 100644 index 000000000..d60cd3c83 Binary files /dev/null and b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image-1.png differ diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image-2.png b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image-2.png new file mode 100644 index 000000000..c332e76cd Binary files /dev/null and b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image-2.png differ diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image.png b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image.png new file mode 100644 index 000000000..e3dd7df58 Binary files /dev/null and b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/image.png differ diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/index.html b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/index.html new file mode 100644 index 000000000..e79cf366c --- /dev/null +++ b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/index.html @@ -0,0 +1,2653 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Spawn NPCs from RVIZ - AWSIM Labs Documentation + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + Skip to content + + +
    +
    + +
    + + + + + + + + +
    + + + + +
    + +
    + + + + +
    +
    + + + +
    +
    +
    + + + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    +
    + + + +
    +
    + + + + + + + +

    Spawn NPCs from RVIZ

    + +

    Introduction#

    +

    This feature allows you to spawn NPCs (pedestrians, cars, buses) in the Unity scene (AWSIM) from Autoware (RVIZ). It includes bulk deletion, vehicle velocity specification, and ensures NPC vehicles move straight, only colliding with the ground.

    +

    Setup#

    +

    You can change the configuration of the NPCs in the RVIZNPCSpawner component in AWSIM. It is attached to the Environment game object in the AutowareSimulation scene. You can also attach the RVIZNPCSpawner to any other game object and set all the required values in your custom scene.

    +
      +
    1. +

      Attach the RVIZNPCSpawner component to one of the game objects in the scene. By default, it's attached to Environment.

      +
    2. +
    3. +

      In AWSIM, you can add more cars (smaller vehicles) or buses (large vehicles) in the Npc Car prefabs / Npc Bus prefabs lists respectively.

      +
    4. +
    5. +

      Then, select the parent objects under which the Pedestrians or Vehicles will be spawned.

      +
    6. +
    7. +

      Finally, adjust the Despawn time to destroy the NPCs after a delay.

      +
    8. +
    +

    alt text

    +

    Spawning NPCs from Autoware#

    +
      +
    1. +

      Open up Autoware.

      +
    2. +
    3. +

      Click the 2D Dummy Car,2D Dummy Bus or 2D Dummy Pedestrian button in the toolbar.

      +
    4. +
    +

    alt text

    +
      +
    1. Set the pose of the dummy object by clicking and dragging on the map.
    2. +
    +

    alt text

    +
      +
    1. Set the velocity of the object in Tool Properties -> 2D Dummy Car/Pedestrian panel.
    2. +
    +

    alt text

    +
      +
    1. NPCs will not be spawned if the you try to place them outside the map.
    2. +
    + + + + + + + + + + + + + +
    +
    + + + + + +
    + + + +
    + + + +
    +
    +
    +
    + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/rvizspawner.png b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/rvizspawner.png new file mode 100644 index 000000000..130dce1a6 Binary files /dev/null and b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/rvizspawner.png differ diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/spawnPedestrian.gif b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/spawnPedestrian.gif new file mode 100644 index 000000000..5164a1d5e Binary files /dev/null and b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/spawnPedestrian.gif differ diff --git a/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/toolsprop.png b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/toolsprop.png new file mode 100644 index 000000000..2fbc95533 Binary files /dev/null and b/pr-120/Components/Traffic/NPCs/RvizNPCSpawner/toolsprop.png differ diff --git a/pr-120/Components/Traffic/NPCs/Vehicle/index.html b/pr-120/Components/Traffic/NPCs/Vehicle/index.html index 617960492..c1f50608c 100644 --- a/pr-120/Components/Traffic/NPCs/Vehicle/index.html +++ b/pr-120/Components/Traffic/NPCs/Vehicle/index.html @@ -1873,6 +1873,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • diff --git a/pr-120/Components/Traffic/RandomTraffic/AddRandomTrafficEnvironment/index.html b/pr-120/Components/Traffic/RandomTraffic/AddRandomTrafficEnvironment/index.html index 7ac3be42a..366077b04 100644 --- a/pr-120/Components/Traffic/RandomTraffic/AddRandomTrafficEnvironment/index.html +++ b/pr-120/Components/Traffic/RandomTraffic/AddRandomTrafficEnvironment/index.html @@ -14,7 +14,7 @@ - + @@ -1985,6 +1985,27 @@ +
  • + + + + + Spawn NPCs from RVIZ + + + + +
  • + + + + + + + + + +
  • @@ -2698,13 +2719,13 @@

    Check final configuration +