AutowareV2X/docs/tutorials/planning-simulation/rosbag-and-analysis.md

35 lines
790 B
Markdown
Raw Normal View History

2022-10-30 11:55:36 +00:00
# Recording Rosbag and Tcpdump for Analysis
## Record both rosbag and tcpdump
In `autoware_1`:
```
docker exec -it autoware_1 bash
2022-10-30 11:55:36 +00:00
cd ~/workspace/autoware_docker
ros2 bag record -o test_sender_rosbag /perception/object_recognition/objects /tf
sudo apt update
sudo apt install tcpdump
sudo tcpdump -i eth0 -w test_sender_tcpdump.pcap
2022-10-30 11:55:36 +00:00
```
In `autoware_2`:
```
docker exec -it autoware_2 bash
2022-10-30 11:55:36 +00:00
cd ~/workspace/autoware_docker
ros2 bag record -o test_receiver_rosbag /v2x/cpm/objects /tf
sudo apt update
sudo apt install tcpdump
sudo tcpdump -i eth0 -w test_receiver_tcpdump.pcap
2022-10-30 11:55:36 +00:00
```
## Open PCAP file in Wireshark
![](./wireshark_awv2x.png)
2022-10-30 11:55:36 +00:00
## Analyze in JupyteLab
### Plot the x,y coordinates of objects in test_sender_rosbag
1. Export the necessary topics of the Rosbag to a CSV file