ros-naoqi / nao_virtual

all tools to simulate nao robot
Apache License 2.0
43 stars 26 forks source link

ALMemory::getData. Data not found RobotConfig/Body/Type #32

Open victorpaleologue opened 10 months ago

victorpaleologue commented 10 months ago

@brain0071 reports in #23:

I am using ubuntu18.04. I have run roscore, and ~/naoqi/naoqi-sdk/naoqi --verbose --broker-ip 127.0.0.1. then I run roslaunch naoqi_driver naoqi_driver.launch nao_ip:=127.0.0.1, I got this error:

Receiving information about robot model
terminate called after throwing an instance of 'qi::FutureUserException'
 what():      ALMemory::getData
  Data not found RobotConfig/Body/Type
victorpaleologue commented 10 months ago

@brain0071, which version of the NAOqi SDK have you been running, and which version of the naoqi_driver?

The name of the archive of the NAOqi SDK contains the version number.

The info of the package you installed to get naoqi_driver contains it. You can do : dpkg -l | grep naoqi-driver to get it.

brain0071 commented 10 months ago

I am using "naoqi-sdk-2.8.5.10-linux64", and I cloned this repo:"https://github.com/ros-naoqi/naoqi_driver.git", use "catkin_make" compiled it. I run this command:"naoqi --verbose --broker-ip 127.0.0.1", and then "roslaunch naoqi_driver naoqi_driver.launch nao_ip:=127.0.0.1 " in another terminal. then i got this Error.

brain0071 commented 10 months ago

@brain0071, which version of the NAOqi SDK have you been running, and which version of the naoqi_driver?

The name of the archive of the NAOqi SDK contains the version number.

The info of the package you installed to get naoqi_driver contains it. You can do : dpkg -l | grep naoqi-driver to get it.

And I have no a real robot, I just want to use simulation.

victorpaleologue commented 10 months ago

I made it work for Pepper running NAOqi 2.9.x with recent patches, but not for NAO with NAOqi 2.8. So far it only works for 2.5. Thankfully this should probably be easy to fix, because 2.8 works almost like 2.9: everywhere you find 2, 9, 2_9 or 2.9 in the code, switch it to 2, 8, 2_8 or 2.8, and it should work. If it works please consider pushing back your changes to https://github.com/ros-naoqi/naoqi_driver with a PR.

brain0071 commented 10 months ago

@brain0071, which version of the NAOqi SDK have you been running, and which version of the naoqi_driver? The name of the archive of the NAOqi SDK contains the version number. The info of the package you installed to get naoqi_driver contains it. You can do : dpkg -l | grep naoqi-driver to get it.

And I have no a real robot, I just want to use simulation. When I use this version naoqi-driver in ros noetic, and naoqi sdk 2.5.5, It seem that a new error has occurred.

dpkg -l | grep naoqi-driver
ii  ros-noetic-naoqi-driver                     0.6.0-1focal.20231013.191701          amd64        Driver module between Aldebaran's NAOqiOS and ROS.

and naoqi-sdk-2.5.5.5

Like this:

/opt/ros/noetic/lib/naoqi_driver/naoqi_driver_node: symbol lookup error: /lib/x86_64-linux-gnu/liburdfdom_model.so.1.0: undefined symbol: _ZN12TiXmlElement12SetAttributeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_
victorpaleologue commented 10 months ago

It looks strange that liburdfdom is under /lib, but I assume it's ok. The error says it's failing to find TinyXML's symbols. If you do:

sudo apt install libtinyxml2-9

Does it work better?