Error " Cannot find S-function module 'joyinput' " when try to use in with ROS monitor and tune.

6 ビュー (過去 30 日間)
I try to run a simulink model with ROS monitor and tune but it has a Error " Cannot find S-function module 'joyinput'. S-Function modules must exist as either source files or pre-compiled object files on the MATLAB path. " . It doesn't happen when I run this same model in normal simulation.
  1 件のコメント
Akash Ayyagari
Akash Ayyagari 2023 年 4 月 9 日
I have the same error but for a jetson nano. As I try to integrate what Jan had told in his answer, I made sure jetson nano and logitech G29 are compatible and working. As I try to connect to the Jetson board instead of the host, I get an error in Simulink stating
Error in port widths or dimensions. 'Output Port 1' of 'LateralControlmodified/G29 input1/Joystick Input' is a one dimensional vector with 8 elements.
Component:Simulink | Category:Model error
Error in port widths or dimensions. 'Input Port 1' of 'LateralControlmodified/G29 input1/ch 1' has 4 elements. This port does not accept the dimensions (or orientation) specified by the input signal.
Component:Simulink | Category:Model error
How do I ensure that the joystick input is being read from simulink if I connect the logitech wheel to Jetson?
I am quite new to this and any advice would be of great help.

サインインしてコメントする。

採用された回答

Jan Houska
Jan Houska 2021 年 11 月 18 日
Hi Chanokun,
if you run a model in monitor and tune mode, it means that the model is compiled into a binary executable which then runs on the target platform (in your case ROS). So this would mean that the joystick would have to be connected to the ROS target instead of your host machine, the joystick would have to be supported by ROS, and the joystick block would have to be able to generate a ROS-compatible code. At least the last condition is definitely not met, and the first two are probably neither.
Good Luck, Jan

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePublishers and Subscribers についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by