Closed orikuma closed 1 year ago
Do you have any idea to solve this problem?
Hi @orikuma
Sorry but no :(
There is no error message in the message view or in the console output so it's definitely going to be difficult to debug. Are you able to run simulations with HRP robots on the same machine? Did you run clear-omninames.sh before running the simulation?
Best,
Thank you for your reply.
Are you able to run simulations with HRP robots on the same machine?
No. When I run choreonoid sim_mc_openrtm.cnoid --start-simulation
in /usr/local/share/hrpsys/samples/MC_HRP2KAI
, /usr/local/share/hrpsys/samples/MC_HRP5P
, and /usr/local/share/hrpsys/samples/RHPS1
, I got the same error.
Did you run clear-omninames.sh before running the simulation?
Yes. I already run clear-omninames.sh
.
Can you run simulation of choreonoid in Ubuntu 20.04? Is this problem reproduced in your machine?
I found that ros-noetic-openrtm-aist
was installed in my machine (I assume that it was automatically installed by rosdep).
When I purged it and rerun mc-rtc-superbuild, the above problem did not happen.
I'm sorry for bothering you.
Thanks for the update. How did you find out this was the issue?
I am not sure why this is failing because the ros-noetic-openrtm-aist package has the same version of openrtm-aist than the one we build with superbuild. We also normally explicitly pass the openrtm directory to openhrp when we build it but maybe it needs to be passed to Choreonoid as well?
I'll try to find some time to reproduce the issue locally.
How did you find out this was the issue?
I remembered that a similar corba error was caused by the version incompatibility of openrtm-aist installed from apt before. (I'm sorry but I did not investigate its reason deeply)
I am not sure why this is failing because the ros-noetic-openrtm-aist package has the same version of openrtm-aist than the one we build with superbuild.
As far as I know, ros-noetic-openrtm-aist comes from https://github.com/tork-a/openrtm_aist-release/tree/release/noetic/openrtm_aist/1.1.2-4, which is different from isri-aist/openrtm-aist-cpp
.
We also normally explicitly pass the openrtm directory to openhrp when we build it but maybe it needs to be passed to Choreonoid as well?
I think it might help us avoid this kind of version incompatibility problem.
I want to run dynamics simulation for JVRC1 on choreonoid in Ubuntu 20.04. I installed mc_openrtm and chorenoid from mc-rtc-superbuild and start choreonoid by following commands.
Then, sim_mc.py failed to be executed with following message in choreonoid.
The output in the terminal is as follows.
I confirmed that this error is occured because
rh
in https://github.com/jrl-umi3218/mc_openrtm/blob/master/projects/JVRC1/cnoid/sim_mc.py#L104 is None. I also confirmed thatJVRCController(Robot)0
exists in the "RTC List" viewer in choreonoid. Do you have any idea to solve this problem?