Every value from ROS Subscriber put to zero

조회 수: 3 (최근 30일)
Jason Michel Lambert
Jason Michel Lambert 2021년 12월 15일
답변: Jagadeesh Konakalla 2023년 3월 8일
Hi,
I'm having issues with my ROS Subscriber in Simulink. I have a comptuer running a ROS Master wired-connected to a second one running windows and Matlab/Simulink. I want to send a basic ROS Message to simulink via a ROS Topic. I checked with 'rostopic echo <topic_name>' on my linux platform and the right values come up. But when i checked with a value display or a scope in simulink what is the output from my ROS Subsriber bloc, all the values are 0. It seems that the topic is filled with the rights values but my simulink model cannot read it.
But everything works for a ROS Publisher
  댓글 수: 1
Abhijeet Gadkari
Abhijeet Gadkari 2021년 12월 16일
Hello Jason,
This issue seems similar to this MATLAB Answers post.
The “Accepted Answers” suggested in that post might be useful.
-Abhijeet

댓글을 달려면 로그인하십시오.

답변 (1개)

Jagadeesh Konakalla
Jagadeesh Konakalla 2023년 3월 8일

카테고리

Help CenterFile Exchange에서 ROS Network Access in MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by