Problems with connecting to the ROS master using rosinit

조회 수: 6 (최근 30일)
Linn Peizhen Liao
Linn Peizhen Liao 2021년 6월 1일
댓글: Cam Salzberger 2021년 6월 1일
I am running ros on a raspberry pi 4 and used the following code to try to establish a global ROS node
setenv('ROS_MASTER_URI','http://192.168.1.2:11311')
setenv('ROS_IP','192.168.1.1')
rosinit('192.168.1.2')
and the error message that pops up on rosinit is
' Connection to process with Exchange: "ce85a6ab-8a96-40e9-9f51-c8fa6ac4ded8 " was lost.
It never happened before as I was able to establish the connect previously, and neither using rosshutdown or rebooting the raspberry pi worked
  댓글 수: 2
Abhijeet Gadkari
Abhijeet Gadkari 2021년 6월 1일
Hello Linn,
Can you provide some more details of your setup?
  1. MATLAB release version (along with update version if any)
  2. ROS version installed on your Raspberry Pi (kinetic, melodic, noetic?)
-Abhijeet
Cam Salzberger
Cam Salzberger 2021년 6월 1일
3) Does it behave differently if you don't set the environment variables and just try rosinit with the IP address argument?
4) What about if you don't use rosinit and just try:
ros.Node('/test_node', '192.168.1.2')
5) Does it work if you start the ROS Master on MATLAB (rosinit, no arguments, no environment setting), and then connect to it from the Raspberry Pi?
-Cam

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by