-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Switch to Auto Mode on Second Autoware Instance over LAN with Zenoh Bridge #150
Comments
Or perhaps the issue is caused by using the same zenoh-bridge-ros2dds-conf.json5 file on both machines? I’m not entirely sure, but I’ll investigate further and try to resolve it. |
Hello @Justin-Xiang ! I'm a college student studying autoware-based v2x. Having been through an issue similar to yours, I wrote down my issue right before your issue. I'm running autoware on one machine, and I've experienced an error that the auto button sometimes activates or does not activate after specifying 2d goal pose, and if not, sometimes it's resolved by shutting down the terminal and running it again. My problem is that in the process of running two autoware instruments, when you turn on the second autoware after the first autoware is set up, the two autowares are experiencing issues that collide with each other. If there's anything I set up differently, in the run-autoware-docker.sh file, I added the --network host setting so that the docker container is set to communicate in host mode, is my problem related to this? I'm studying the docker container's network, ros2 dds, zenoh bridge, so I don't know the communication structure. And can I put the ip address of host1 on run-autoware.sh ? The os on my computer are uutntu 22.04 and ROS humble, and I'm using nvidia rtx 3080. And I've been cloning the main branch of GitHub. Could you also share your development environment and settings? Lastly, I'm also looking into it to solve the problem, but if you solve the problem, it would be very helpful if you could share the method with me. If it's possible additionally, could you share the settings related to your container settings sh file and the sh file running autoware and zenoh bridge, or the ROS_DOMAIN_ID / ROS_LOCALHOST_ONLY settings for ROS communication? I wonder if there are any corrections you made in the github data. I will also research more and study to solve the problem. Thank you so much. |
@minseokim521 Hi, I came across your issue but didn’t look into it deeply since you’re using V2X and running everything on a single machine. I haven’t worked with V2X before, but I do have experience running two Autoware instances on a single machine. From my experience, I didn’t make any code modifications—just followed the documentation—and everything worked as expected. You might want to try running it without modifications to see if that makes a difference. Since our development environments seem quite similar, I don’t think hardware resources should be a constraint. Let me know if you have any other questions! |
Found this from zenoh issues: it states: @evshary Could you confirm whether this means the setup I described in this issue is currently not achievable? Additionally, would it be possible to run two zenoh_carla_bridge instances on separate machines while sharing the same Carla simulator? |
I tried your setup before and it should be available. However, the error message is quite weird and worth investigating.
Anyway, I don't think your issue is related to eclipse-zenoh/zenoh-plugin-ros2dds#305 (comment), since we don't need two Autoware to talk to each other directly. |
Hi @evshary Thanks for your response.
Let me know if you need more details-I’d be happy to provide additional information. |
Thank you! It didn't happen on my machine, but I indeed heard someone else face the issue before. I will take a look. Feel free to provide any other information if you find something weird. |
Hi @Justin-Xiang First of all, thank you for your response. As you told me, I downloaded the existing github material and completed the build without any modifications, and then ran the Run Carla with multiple Autowares scenario. It was divided into host1 and host2 just like you, and host1 ran carla and ran run-bridge-two-vehicles.sh and run-autoware.sh v1. Host2 runs run-autoware.sh v2, and we also added the export ZENOH_CARLA_IP_PORT="${2:-'host1 ip'}" #previously 127.0.0.1 operation you mentioned. But just like you, sometimes successfully running auto mode, and sometimes one or both of them deactivated auto mode, which caused the test to fail to proceed properly. This seems to be the same phenomenon as the problem you mentioned. I'm still looking for additional information to resolve this. If you have any methods or problems you found to solve the problem, I would really appreciate it if you could share them. |
@minseokim521 Yes, I’ve encountered the same issue—it works sometimes but fails at other times. Unfortunately, I don’t have a concrete solution yet. I suspect it might be a performance-related issue with the |
Hi @Justin-Xiang @minseokim521 I have also encountered issues where the vehicle cannot switch to auto mode, especially when running two vehicles simultaneously. During execution, I frequently see the following log messages: /steering_status and /velocity_status dropped to the warning level appearing repeatedly., and I believe this is the reason why I cannot activate auto mode. I found that Autoware has certain settings that monitor safety-related topics. These are defined in the following file: Inside this file, the levels for /steering_status and /velocity_status are defined, as shown in the image below: If these topics are published too slowly, Autoware will determine that the system is unsafe and prevent auto mode from being activated. I suspect that running two vehicles increases the system load, leading to performance issues that cause these topics to be published at a lower frequency. As a solution, I have tried lowering the warning_rate slightly (to 1.0), which may help mitigate the issue. This is my current understanding, and I’m open to further discussion. Thanks! |
I am running two Autoware instances on two separate machines within the same LAN. The first machine (IP
192.168.1.1
) can successfully switch its vehicle to Auto mode, while the second machine (IP192.168.1.2
) cannot — even though it can successfully plan routes. Additionally, there are error messages in thezenoh_bridge_ros2dds.log
file that I have not encountered before.Setup Details
Machine 1
192.168.1.1
run-bridge-two-vehicles.sh
run-autoware.sh v1
Machine 2
192.168.1.2
run-autoware.sh
:run-autoware.sh v2
Expected Behavior
Actual Behavior
Logs and Error Messages
Below are excerpts from
zenoh_bridge_ros2dds.log
on Machine 2:It seems to be the problem of
zenoh-bridge-ros2dds
. Any insights or guidance would be highly appreciated!The text was updated successfully, but these errors were encountered: