When I run the example, I get an error as follows, how can I solve it? #207
Replies: 1 comment
-
Hello, this error is triggered when the ROS master and node are on two different subnets, and the library cannot find an IP address suitable for communicating with the master. You need to set this IP manually through the Host parameter: n, err := goroslib.NewNode(goroslib.NodeConf{
Name: "goroslib_pub",
MasterAddress: "127.0.0.1:11311",
Host: "my-ip-address",
})
if err != nil {
panic(err)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions