- https://www.mathworks.com/help/ros/ref/currenttime.html
- https://www.mathworks.com/help/ros/ref/time.html
activating valve with ROS
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
We want to control a solenoid valve (on/off) with simulink. The simulink is connected to ROS and the activation message is 0 (for closing) and 1 (for opening).
The problem is that when the message is sent to the ROS, ROS receives it but valve is not opened completely (it partially opens). But when the message is sent from another node (an ubuntu machine), ROS again receives the same message and valve completely opens.
Does anyone have a similar experience and think it is a MATLAB/ROS clock issue?
Thank you.
댓글 수: 0
답변 (1개)
Yoga
2023년 9월 7일
편집: Yoga
2023년 9월 7일
I understand that you are facing an issue with activating the valve in the ROS. The issue might be in the sorted execution order of the subscriber and publisher blocks. But it most likely should not be a MATLAB/ROS clock issue.
You can refer to the following links regarding ROS current time and accessing ROS time functionality:
I hope this helps resolve resolve your issue.
댓글 수: 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!