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

8 visualizaciones (últimos 30 días)
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 comentario
Akash Ayyagari
Akash Ayyagari el 9 de Abr. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Jan Houska
Jan Houska el 18 de Nov. de 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

Más respuestas (0)

Categorías

Más información sobre Publishers and Subscribers en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by