フィルターのクリア

Error opening LED device

3 ビュー (過去 30 日間)
Stefano Dalla Gasperina
Stefano Dalla Gasperina 2019 年 5 月 24 日
回答済み: Simon Ellwanger 2022 年 2 月 4 日
Hello,
I am trying to get started with ROSberry and Simulink. I was able to complete tutorial: Getting Started with Robot Operating System (ROS) on Raspberry Pi®, so that I was able to trigger led0 of Raspberry Pi via topic over ROS network.
However, I can't run the node as standalone node from ssh+rosrun etc etc.
I get an error: "Error opening LED device file led0." and the node can't start.
If I start the node via MATLAB "runROSNode" everything works like a charm.
Please help,
for me is very important to be able to start standalone ROS nodes from Pi board
Capture.PNG
  2 件のコメント
MathWorks Robotics and Autonomous Systems Team
Sorry for the delay in responding, seems you are using a function which is not provided by MathWorks.
As we have "runNode"
Please confirm your workflow, and if needed please email the issue with proper steps to support@mathworks.com
Stefano Dalla Gasperina
Stefano Dalla Gasperina 2019 年 7 月 1 日
The problem was not due to runROSNode function, but I could not launch the compiled file from ssh directly from Raspberry's terminal.

サインインしてコメントする。

回答 (1 件)

Simon Ellwanger
Simon Ellwanger 2022 年 2 月 4 日
on your raspberry check with
rostopic list
if your topic /led is in the ROS subscription list. If so, you will see
/led
that's why you cannot start it again. It's alreaedy running and should work. Try
rostopic echo /led
to see if your raspberry can receive from /led topic.

カテゴリ

Help Center および File ExchangeRaspberry Pi Hardware についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by