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
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
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Publishers and Subscribers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!