Closed loop between Simulink and Autoware
5 次查看(过去 30 天)
显示 更早的评论
Hello,
I am stuck in a problem for a while now, I have created a closed loop between Autoware and Simulink through ROS2. The idea is to analyse the controller node in Autoware. Thats why I am only launching the controller node Controller Node/Orthisnode. This node requires 4 inputs (Trajectory, current position, current acceleration, current steering angle) and one output (controller command). I am publishing these inputs from simulink and subscribing to the output also in simulink.
The controller in Autoware is publishing the output at 32Hz frequency. The problem I am facing is that, controller is not being able to follow the trajectory I am giving from simulink. My guess is the time synchronization problem between Autoware and Simulink. However, I have tried Simulation Pacing option, changed the sample rate of the topics in simulink, also change the fixed step size in Simulink and nothing has been worked.
I am attaching my simulink model and also the ros2 node files where I have changed the message type, hope you can reproduce the results. I thank in advance for any guidance.
Kind regards,
Nupur
0 个评论
回答(1 个)
Josh Chen
2024-5-16
Hi Nupur,
Thanks for sharing the model. Unfortunately, it is still very changing to provide valuable suggestions without looking at the complete implementation. We probably need to isolate the system section by section to see what is the bottleneck here during the message delivering.
Could you please create a help ticket through our technical support team so we can get more information on this issue and look into it together?
Thanks,
Josh
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!