필터 지우기
필터 지우기

how can I make the simulink model to save some array data or ROS2 bag log in SD card in jetson nano

조회 수: 2 (최근 30일)
How can I make the simulink model to save some results data or ROS2 bag log in SD Card in Jetson Nano?
I made the Simulink model that can be read some ROS2 data and calculate them with some logic.
I just want to save the calculated results in SD Card in Jetson Nano board, and the Simulink model is just embedded in Jetson Nano momory.
I cannnot found some block or setting(option) for save the data in SD Card.
If the calculated result cannot save in the SD card as array, I just want to know how can I save ROS2 bag log in SD card?

답변 (1개)

Josh Chen
Josh Chen 2023년 4월 24일
Hi Chulhoon,
What is the data type of your results?
One idea is to use Publish blocks to publish the result back to ROS 2 network. Meanwhile, you can open another terminal and use ros2 bag record to save it to a ROS 2 bag file:
$ ros2 bag record <topic_name>
Another idea is to use "To File" block. However, this block has some limitations as mentioned in the link.
Hope this helps,
Thanks,
Josh

카테고리

Help CenterFile Exchange에서 ROS 2 Network Access in Simulink에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by