Closed torydebra closed 4 years ago
Yes the problem is clear: param server sometimes does not work as expected, in this case the issue is the one you mentioned. Since it is clear that we can't use it as a "dictionary" in the memory, I would go back to the two entry points.
This would solve also @edoardolamon issue.
Ok, done. In XBot, how is this handled?
Sometimes it happens that the robot_description parameter is not found by joint_state_publisher and robot_state_publisher.
This seems to happen randomly on my system. It may also be the cause of this issue.
This problem could be caused because the main rosee node (universalfindaction in offline phase and universalrosendeffector in online phase) does not put the param in time. This problem probably happens since commit 4ac21f96fc6e44dccfd042f0d766ae941e17cacf. There, I deleted the param loading in the launch file. This was because somewhere in the code we take urdf file from the ros_ee_config file, and somewhere else directly from param server, so we had 2 points. The ideal would be to get the filename from config file, and set the file with this arg all in the launch. But in launch it is not possible to "get" a param. To solve we should add again the load in launch file, and keep 2 entry points.
@liesrock, if you have understood all these confabulations, maybe you are aware of a better method to solve.