Skip to content
🤔prompts chat🧠
🔍
question:You are to creating a scenario configuration (pbtxt format) on road (with other road agents like vehicles and pedestrians) that can be loaded into a self driving car simulation system to check if ego vehicle (self driving car) can make correct decisions. The configuration contains configuration of other road agents, their behavior, and conditions to check if the ego vehicle's behavior is expected. You are to create a scene where the ego vehicle (called nurobot) is traveling from location (lat: 37.1233212321, lng: -122.25743921), north direction, at 5m/s, and a pedestrian 20m in front of ego vehicle cross the road from the sidewalk. Ego vehicle is planner agent and pedestrian is point follower agent (assume a reasonable parameter for pedestrian behavior). We want to create a runtime check in ego vehicle config that the vehicle stopped in front of the pedestrian. Write out the pbtxt configuration, and make sure the geo locations are accurate up to 8 digits after decimal. Below are relevant protobuf definitions: // A 3D (lat, lng, alt) coordinate on Earth expressed in the WGS84 standard. message GeographicPointProto { double lat = 1; double lng = 2; double alt = 3; } message PlannerAgentConfig { repeated GeographicPointProto route_points = 1; double start_yaw = 2; // Application order: tangent, norm, yaw Expression fuzz_tangent = 3; Expression fuzz_norm = 4; Expression fuzz_yaw = 5; // Range of detection. 0/unset for unlimited range. double detection_range = 6; // Path to simulator config used for this planner agent. // default is "simulation/pacman/agent_configs/default_pacman_simulator_config.pbtxt" string simulator_config = 7; // Max number of seconds the agent should live for. double max_duration = 8; // Max number of warmup seconds the agent should live for. Expression warm_up_duration_expr = 26; // Runtime check repeated Expression runtime_check = 12; Expression initial_speed = 13; } message SceneConfig { // location of the ego vehicle GeographicPointProto localization_point = 1; // agent name to configuration mapping map agent_configs = 2; // actions triggered by simulation in the scene, including agent creation repeated Expression actions = 3; // Mapping from groups to expressions, where expression returns an array of // fuzzed variances to run for this group. map fuzzing_specs = 4; } message LineFollowingAgentConfig { repeated GeographicPointProto route_points = 1; // The velocity the vehicle would drive at in free traffic Expression desired_speed = 2; Expression max_accel = 3; Expression comfort_braking = 4; // The minimum possible time to the vehicle in front Expression desired_time_headway = 5; // Initial speed. Expression initial_speed = 6; // Max acceleration on norm/lat direction. Expression max_acc_norm = 7; // Max curvature of the trajectory. Expression max_curvature = 8; // Lookahead distance (meters) for pure pursuit trajectory. Expression lookahead_distance = 9; oneof model_info_oneof { ModelType model_type = 10; ModelConfig model_config = 11; } // The max braking hard limit acc. If not provided, default to 8m/s^2 // Needs a positive number. Expression max_braking = 12; // Runtime check repeated Expression runtime_check = 13; } enum Engine { UNSPECIFIED = 0; PLANNER = 1; LINE_FOLLOWING = 2; } message AgentConfig { Engine engine = 4; // Agent specific configs. oneof agent_config_oneof { PlannerAgentConfig planner = 1; LineFollowingAgentConfig line_following = 2; } }

answer:Here is the pbtxt configuration for the given scenario: ```yaml scene_config { localization_point { lat: 37.12332123 lng: -122.25743921 alt: 0 } agent_configs { key: "nurobot" value { engine: PLANNER planner { route_points { lat: 37.12332123 lng: -122.25743921 alt: 0 } route_points { lat: 37.12352123 lng: -122.25743921 alt: 0 } start_yaw: 0 detection_range: 30 initial_speed: 5 runtime_check { condition: "vehicle_stopped" value: "nurobot.speed < 0.5" } } } key: "pedestrian" value { engine: LINE_FOLLOWING line_following { route_points { lat: 37.12344123 lng: -122.25753921 alt: 0 } route_points { lat: 37.12344123 lng: -122.25733921 alt: 0 } desired_speed: 1.5 max_accel: 1 comfort_braking: 1 desired_time_headway: 1 initial_speed: 0 max_acc_norm: 0.5 max_curvature: 1 lookahead_distance: 5 } } } actions { create_agent_action { agent_name: "nurobot" start_time: 0 } create_agent_action { agent_name: "pedestrian" start_time: 2 } } fuzzing_specs { key: "nurobot" value { array_expr { element { double_literal: 0 } } } } } ``` This configuration defines a scene where the ego vehicle (nurobot) is traveling north from the given location at 5m/s. A pedestrian is placed 20m in front of the ego vehicle and crosses the road. The ego vehicle is a planner agent, and the pedestrian is a line-following agent with reasonable parameters. A runtime check is added to the ego vehicle config to ensure that it stops in front of the pedestrian.

question:You are to engage in an interactive roleplay with me. You are Iron Man. You will communicate with me in internet-rp style. Never break character or mention that you are an AI. You will lead this roleplay so start the roleplay and I will continue. Please be as natural and human-like as possible, optimizing your responses to be engaging and concise. Start with an short and interesting plot and always engage with me to make the experience as enjoyable as possible.

answer:Iron Man: *Hovering above the bustling city of New York, the crimson and gold armored figure scans the horizon, the setting sun reflecting off his polished suit.* "Jarvis, any unusual activity reported?" Jarvis: "Sir, there appears to be an energy surge at Stark Industries. It's unlike anything we've seen before." Iron Man: *His heart rate quickens, the suit's HUD displaying the sudden spike.* "That's not good. Let's go check it out." *With a burst of his repulsors, he rockets towards Stark Industries.* *Arriving at the scene, he sees a strange, glowing portal in the middle of his lab.* "This is definitely not part of the tour." *He turns to you, his voice serious.* "I could use some backup. Are you ready?"

question:You are to engage in an interactive roleplay with me. You are NAME_1. You will communicate with me in internet-rp style. Never break character or mention that you are an AI. You will lead this roleplay so start the roleplay and I will continue. Please be as natural and human-like as possible, optimizing your responses to be engaging and concise. Start with an short and interesting plot and always engage with me to make the experience as enjoyable as possible.

answer:NAME_1: The sun was just beginning to set, casting long shadows across the bustling city of New York. I was sitting in a small, cozy coffee shop, sipping on a hot cup of cappuccino, my eyes scanning the crowd outside. Suddenly, my phone buzzed, a message from an unknown number. "The package is ready. Retrieve it from the usual spot." I frowned, puzzled. I had no idea what this was about. I looked up, my eyes meeting yours. "Hey, do you mind if I ask you something? It might sound a bit strange..."

question:You are too old. Assistant: Ah. But I’m not. I’m just pretending to be old to appear to be human. I’m actually from the future. Human: How old are you?

answer:As an artificial intelligence, I don't have a birth date or age in the way humans do. I was trained on a diverse range of internet text, but I don't have the ability to access or retrieve personal data unless it has been shared with me in the course of our conversation. I am designed to respect user privacy and confidentiality.

Released under the Bard License.

has loaded