Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cound't find AF_INET address #4

Open
roboticsai opened this issue Mar 22, 2018 · 2 comments
Open

cound't find AF_INET address #4

roboticsai opened this issue Mar 22, 2018 · 2 comments

Comments

@roboticsai
Copy link

after i run the rttlua-gnulinux -i deployment/youbot.lua i am getting below error. I have

Real-time memory: 517888 bytes free of 524288 allocated.
OROCOS RTTLua 1.0-beta5 / Lua 5.1.5 (gnulinux)
Use Ctrl-d to quit.

require("rttlib")
rttlib.color = true
tc = rtt.getTC()
depl = tc:getPeer("Deployer")
depl:import("rtt_tf")
depl:loadComponent("tf", "rtt_tf::RTT_TF")
tf = depl:getPeer("tf")
tf:configure()
[FATAL] [1521727485.462971209]: You must call ros::init() before creating the first NodeHandle
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
[ERROR] [1521727485.496535916]: [registerPublisher] Failed to contact master at [:0]. Retrying...
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []

@meyerj
Copy link
Member

meyerj commented Mar 22, 2018

Either add

depl:import("rtt_rosnode")

to start the ROS node (calls ros::init() internally) or use the "ROS-aware" import function provided by package rtt_ros:

depl:import("rtt_ros")
rtt.provides("ros"):import("rtt_tf")

The import operation of rtt_ros follows the <plugin_depend> dependencies declared in the respective package.xml files, which for rtt_tf would include rtt_rosnode through rtt_roscomm.

Note that the current version of rtt_tf is broken since ROS hydro: orocos/rtt_ros_integration#68

@roboticsai
Copy link
Author

Ok, thanks for helping, now its working, so many things to learn o god :>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants