Closed dkanou closed 5 years ago
I believe there is a conflict of superbuilds: the exported global variables are the same so we should be sure you are actually sourcing ONLY the setup.bash from the binary.
Can you double check or try the installation on a brand new pc without any superbuilds?
When I use:
set_xbot_config /opt/xbot/build/install/share/xbot/configs/ADVR_shared/coman/configs/coman.yaml or set_xbot_config /home/dkanou/Kanoulas/code/devel-superbuild/configs/ADVR_shared/user_example/centauro_simple_example.yaml
this throws a seg fault:
roslaunch centauro_gazebo centauro_world.launch
Let's go back at the setup: I believe the problem is that you have a superbuild + the binary. Is this the case? Can you try with a fresh system?
This superbuild:
/home/dkanou/Kanoulas/code/devel-superbuild
Should not be sourced otherwise it will go in conflict with the binary @alaurenzi
But then how can I use packages of the superbuild? I mean centauro_simulation, etc?
I mention in an offline email that we should separate the two problem: let's first make sure the binaries work in a standalone fashion on your pc, we will then solve the issue you mentioned (sorry as I first user of both the superbuild and the binary the process is not super smooth).
Can you confirm the binaries are ok with COMAN from binary?
Crashes:
dkanou@VisionPC:~$ XBotCore [info] XBotCore using config file /opt/xbot/build/install/share/xbot/configs/ADVR_shared/user_example/coman_example.yaml [warning] Error while trying to read the SCP log parameters: SCP log disabled [warning] Yaml node IJoint missing in the config. file [error] File libXBotEthernet.so NOT found [error] Main catch exception: libXBotEthernet.so path must be listed inside LD_LIBRARY_PATH
Also: /opt/xbot/build/install/share/xbot/configs/ADVR_shared/coman/configs/coman.yaml is throwing a:
[info] XBotCore using config file /opt/xbot/build/install/share/xbot/configs/ADVR_shared/coman/configs/coman.yaml [warning] Error while trying to read the low level config file: SCP log disabled [error] Main catch exception: yaml-cpp: error at line 0, column 0: bad conversion dkanou@VisionPC:~$ XBotCore -D [info] XBotCore using config file /opt/xbot/build/install/share/xbot/configs/ADVR_shared/coman/configs/coman.yaml [warning] Error while trying to read the low level config file: SCP log disabled [success] DUMMY HAL interface found! [info] Spawned XBOTCORE thread [info] Spawned COMMHANDLER thread [error] in th_init! Config file does NOT contain mandatory node XBotRTPlugins! [success] Thread XBOT_COMMHANDLER: start looping ERROR in parseYAML : YAML file /opt/xbot/build/install/share/xbot/configs/ADVR_shared/coman/configs/coman.yaml does not contain XBotInterface mandatory node!! Segmentation fault (core dumped)
This is documented in the tutorial, but I try to summarize here: you should use are using the low level config file and not the high level one.
From the reported error XBotCore is not used with the -D.
This is the correct sequence:
roscore
set_xbot_config /opt/xbot/build/install/share/xbot/configs/ADVR_shared/user_example/coman_example.yaml
XBotCore -D
Remeber the -D otherwise it will try to find the ethercat driver as in the real robot
Yes this runs. But then when I start: roslaunch coman_gazebo coman_world.launch it crashes everything (XbotCore)
So everything is working with the dummy (rviz) and the cartesian interface right?
I don't know about the roslaunch, but as usal for gazebo we just open the gzserver and gzclient and we load the robot (drag and drop it) with the plugin attached.
There is no need to have another XBotCore running and it is actually wrong.
So if you confirm the kinematic simulation is working we can then close the XBotCore instance (kill it) and proceed simply opening gazebo (no roslaunch to start) drag and drop the robot and try to control it
Ah wait.
roscore XBotCore rosrun cartesian_interface ros_server_node
terminate called after throwing an instance of 'std::runtime_error' what(): robot_description_semantic parameter not set Aborted (core dumped)
Ok..but then how to run a plugin that is compiled inside the superbuild? For example HeriHand inside centauro_tools
Edit: sorry for the very late post :D
I see COMAN in superbuild just by running:
roscore XBotCore -D
the cartesian interface crashes though...
Sorry @dkanou is the XBotCore run with -D? Why before it was working?
To answer to @alaurenzi this is something we did not designed: the idea is to release the binary of the plugins. We can think about this, but first we should be sure that the binary are working in a standalone fashion.
Sorry Lu, I always run it with -D.
Ok so at least the RT plugins are ok right? Can you run an HomingExample and see the robot moving on RViZ?
Yes homing for COMAN is working.
Ok super! Now regarding the cartesian interface are you using the 'use_xbot_config' option? Can you double check with @alaurenzi
rosrun cartesian_interface ros_server_node _use_xbot_config:=true Segmentation fault (core dumped)
Very strange, I am able to run it with no issue: are you able to provide more details about the crash?
I will try again on a fresh installation.
Eh no. This is what we tried with @alaurenzi but we cannot back-trace the cartesian interface.
I installed XbotControl today, gazebo crash at start up without loading any robot.
Removing the "source /opt/xbot/build/install/share/xbot/setup.bash" line from bashrc, gazebo works properly.
No idea why this is happening.
Solution:
remove
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:$XBOT_ROOT/robots/iit-coman-ros-pkg/coman_gazebo/database
from sourced xbot setup file:
/opt/xbot/build/install/share/xbot/setup.bash
Hi @dkanou I am back: should be all solved in the latest version.
Available here: https://github.com/ADVRHumanoids/XBotControl/releases/tag/v1.1.1
Documentation here: https://github.com/ADVRHumanoids/XBotControl/releases/tag/v1.1.1
Can you give it a try?
@dkanou any chances to test this:
Hi @dkanou I am back: should be all solved in the latest version.
Available here: https://github.com/ADVRHumanoids/XBotControl/releases/tag/v1.1.1
Documentation here: https://github.com/ADVRHumanoids/XBotControl/releases/tag/v1.1.1
Can you give it a try?
@nkashiri is also testing this. Otherwise I will close this and I kindly ask to open new issues if you find problems.
I assume it solved.