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

14 views (last 30 days)
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 Comment
Akash Ayyagari
Akash Ayyagari on 9 Apr 2023
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.

Sign in to comment.

Accepted Answer

Jan Houska
Jan Houska on 18 Nov 2021
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

More Answers (0)

Categories

Find more on Publishers and Subscribers in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!