MATLAB Answers

Problems with connecting to the ROS master using rosinit

6 views (last 30 days)
Linn Peizhen Liao
Linn Peizhen Liao on 1 Jun 2021
Commented: Cam Salzberger on 1 Jun 2021
I am running ros on a raspberry pi 4 and used the following code to try to establish a global ROS node
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
Cam Salzberger
Cam Salzberger on 1 Jun 2021
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', '')
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?

Sign in to comment.

Answers (0)



Community Treasure Hunt

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

Start Hunting!