pi4 + ubuntu 20.04 server + ros2 galactic doesn't share ros topic
i have two environment for testing ros.
first is windows 11 + WSL2 + ubuntu 20.04 + ros2 galactic, and it works well.
but second, raspberry pi4 + ubuntu 20.04 server + ros2 galactic, doesn't share there topic.
if i command
ros2 topic pub /test std_msgs/String "data: hello"
-
<first terminal>
$ ros2 topic pub /test std_msgs/String "data: hello"
publisher: beginning loop
publishing #1: std_msgs.msg.String(data='hello')
publishing #2: std_msgs.msg.String(data='hello')
publishing #3: std_msgs.msg.String(data='hello')
publishing #4: std_msgs.msg.String(data='hello')
publishing #5: std_msgs.msg.String(data='hello')
publishing #6: std_msgs.msg.String(data='hello')
publishing #7: std_msgs.msg.String(data='hello')
first environment works well.
<Env1 Second terminal>
$ ros2 topic list
/parameter_events
/rosout
/test
$ ros2 topic echo /test
data: hello
---
data: hello
---
data: hello
---
data: hello
---
data: hello
---
data: hello
---
data: hello
---
but in second environment,
<Env2 Second terminal>
$ ros2 topic list
/parameter_events
/rosout
$ ros2 topic echo /test
WARNING: topic [/test] does not appear to be published yet
Could not determine the type for the passed topic
there is no topic '/test'
i used screen
, Tmux
, Alt + F2 for tty2 for second terminal in Env2
but /test topic still dose not apeared in other terminal.
what can i do for subscribe /test topic?
Asked by JKWang on 2022-07-14 20:44:37 UTC
Comments