ADVRHumanoids/xbot2_examples

Compiled plugin and device not found when running xbot2-core

Closed this issue · 2 comments

Hi,

I really do not know what it has happened since last time I execute xbot2. I think I have not change nothing anywhere. But today this problem occurs:

tori@Aspire-E15:~/xbot2/build$ xbot2-core --verbose
[info] Generated joint id map as:
 joint_map:
  1: joint1
  2: joint2
  3: joint3
  4: joint4
  5: joint5
[info][xbot2-core] parameter '/xbot_internal/hal/robot_ifc_cfg' with type 'XBot::ConfigOptions' was created 
[info][xbot2-core] parameter '/robot_description' with type 'std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >' was created 
[info][xbot2-core] parameter '/jm/tx_filter_autostart' with type 'bool' was created 
[info][xbot2-core] parameter '/xbot_internal/ros_io/call_timeout' with type 'std::chrono::duration<long, std::ratio<1l, 1000000000l> >' was created 
[info][xbot2-core] parameter '/jm/tx_filter_cutoff' with type 'double' was created 
[info][xbot2-core] parameter '/rt_slow/memory_hooks' with type 'bool' was created 
[info][xbot2-core] parameter '/xbot_internal/hardware_description' with type 'XBot::Hal::HardwareDescription' was created 
[info][xbot2-core] parameter '/xbot2_thread_list' with type 'std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >' was created 
[info][nrt_main] 'nrt_main': initializing xbotcore thread with period = 0.005s, scheduler = 'SCHED_OTHER', priority = 0 
[info][nrt_main] 'nrt_main': loading HalManager with devices: [] 
[info][nrt_main] 'nrt_main': loading runnable with type 'ros_control', name 'ros_ctrl', namespace '' 
[ok  ] RobotInterface so library found! 
[ok  ] MODEL INTERFACE so library found! 
[info] Floating base model: FALSE
[info] Joint name: joint1 RBDL ID: 0
[info] Joint name: joint2 RBDL ID: 1
[info] Joint name: joint3 RBDL ID: 2
[info] Joint name: joint4 RBDL ID: 3
[info] Joint name: joint5 RBDL ID: 4
[ok  ] ModelInterfaceRBDL initialized successfully!
[info] Model ordered chains: 
arm

[warn][robot_ros_ctrl] could not find rt device 'rocket': libxbotdev_rocket.so: cannot open shared object file: No such file or directory 
[FATAL] [1604331895.132977631]: 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] [1604331895.195952873]: [registerPublisher] Failed to contact master at [:0].  Retrying...
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []
Couldn't find an AF_INET address for []

It should be related to ROS...

EDIT this is a different issue #19

Checking better, this is related to compiled libraries not found.
I did the export and the set_xbot2_config, but it still does not found the compiled plugins

Actually, not a xbot2 issue.
I modified the install path with ccmake, so it is necessary :

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOMExbot2/install/lib