필터 지우기
필터 지우기

Why do I get an error when trying to build and run my simulink model on my ros device?

조회 수: 11 (최근 30일)
I'm getting this error when I try to build and run my simulink model on my ros device: undefined reference to `rosidl_message_type_support_t const* rosidl_typesupport_cpp::get_message_type_support_handle<sensor_msgs::msg::LaserScan_<std::allocator<void> > >()
I've seen that this can be caused by not including the message packages, but I've checked and they are included.

답변 (1개)

Krishna
Krishna 2023년 2월 22일
Since you have already included the message packages as a workaround, can you please deploy the code using "Remote Device" on a VM?
To deploy the code on a remote device, in Simulink toolstrip, ROS tab, select "Remote Device" option from the "Deploy to" drop-down section in CONNECT tab.
I hope this helps.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by