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

7 次查看(过去 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 CenterFile Exchange 中查找有关 Publishers and Subscribers 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by