Carma streets kafka and scheduling service containers need to be up a. Verify that "intersection_type" is set to "stop_controlled_intersection" in scheduling service manifest.json file
Need to comment out anything referring to the Redshift DB in the worker.go code and rebuild with "docker-compose build worker"
Telematics cloud server docker-compose up everything (nats uri environment variables needs to be VM ethernet interface IP address)
In cda-telematics/telematic_system/telematic_units, run "sudo docker-compose up -d streets-nats-bridge"
Check the status of the telematic cloud worker with "sudo docker logs -f telematic_cloud_server_worker_1"
Send appropriate HTTP curl requests to test
Can check the status of the nats bridge with the "streets_nats_bridge_logger.log" file created inside of the container
curl -X GET -v http://localhost:8080/requestAvailableTopics/<unit_id>
curl -X GET-v http://localhost:8080/requestAvailableTopics?unit_id=<unit_id>
curl -d '{"unit_id": "<unit_id>", "unit_type": "<unit_type>", "timestamp": 1663084528513000325, "topics": ["<topic_name_1>","<topic_name_2>"]}' -H "Content-Type: application/json" -X POST -v http://localhost:8080/publishSelectedTopics
curl -d '{"unit_id": "<unit_id>", "unit_type": "<unit_type>", "timestamp": 1663084528513000325, "topics": ["<topic_name_1>","<topic_name_2>"]}' -H "Content-Type: application/json" -X POST -v http://localhost:8080/requestSelectedTopics
curl -X GET -v http://localhost:8080/registeredUnits
{"unit_id": "streets_id", "unit_type": "infrastructure", "unit_name": "West Intersection", "event_name": "test", "location": "test", "testing_type": "Integration", "timestamp": 1678377501418782.0, "topics": [{"name": "v2xhub_bsm_in"}, {"name": "v2xhub_mobility_operation_in"}, {"name": "vehicle_status_intent_output"}, {"name": "desired_phase_plan"}, {"name": "tsc_config_state"}, {"name": "v2xhub_scheduling_plan_sub"}, {"name": "v2xhub_map_msg_in"}, {"name": "modified_spat"}, {"name": "v2xhub_mobility_path_in"}]}
nats request "streets_id.available_topics" '' --raw
nats request "streets_id.publish_topics" '{"unit_id": "streets_id", "timestamp": 1663084528513000325, "topics": ["v2xhub_bsm_in","v2xhub_mobilitypath_in"]}' --raw
Content type
Image
Digest
sha256:70f435b2d…
Size
437.9 MB
Last updated
5 months ago
docker pull usdotfhwastol/carma_street_nats_bridge:master