2022-10-30 11:55:36 +00:00
|
|
|
# Recording Rosbag and Tcpdump for Analysis
|
|
|
|
|
|
|
|
## Record both rosbag and tcpdump
|
|
|
|
|
|
|
|
In `autoware_1`:
|
|
|
|
```
|
2022-12-02 03:21:19 +00:00
|
|
|
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
|
2022-12-02 03:21:19 +00:00
|
|
|
|
|
|
|
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`:
|
|
|
|
```
|
2022-12-02 03:21:19 +00:00
|
|
|
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
|
2022-12-02 03:21:19 +00:00
|
|
|
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install tcpdump
|
|
|
|
sudo tcpdump -i eth0 -w test_receiver_tcpdump.pcap
|
2022-10-30 11:55:36 +00:00
|
|
|
```
|
|
|
|
|
2022-12-02 03:21:19 +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
|