You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem I have here is that with ROS2, the robot interface fails to load the librobotinterface2, since it looks for librobotinterface2_ros.so, while the library is called librobotinterface2_ros2.so (so Cartesio run in the "visual_only" mode)
For now I have solved with std::string robot_type = "ros2"; which I imagine would cause the dual problem with ROS1.
I do not know which is the exact intention, and if an external arg is necessary, since in the ros2 folder the cpp/hpp are called robotinterface2_ros (without the 2 suffix), but then in the cmake the name is robotinterface2_ros2
I'd say that the intention is to have a default value that is good for ros2 (and so your fix is correct), and then have the possibility to change it via (i) env variable as you see in the code, or (ii) the config options class (opt.set_parameter<std::string>("robot_type", "whatever"))
Ok, now I see, with that getenv we could set the variable in the cmake acording to the ros/ros2 compilation flags.
BTW, I do not know what happened, but since today it is ok even without my hardcoded modification. It seems that now it looks for librobotinterface2_xbot2rt.so which is present and gives no problem at all
The problem I have here is that with ROS2, the robot interface fails to load the
librobotinterface2
, since it looks forlibrobotinterface2_ros.so
, while the library is calledlibrobotinterface2_ros2.so
(so Cartesio run in the "visual_only" mode)For now I have solved with
std::string robot_type = "ros2";
which I imagine would cause the dual problem with ROS1.xbot2_interface/src/robotinterface2.cpp
Lines 39 to 58 in 80754b0
I do not know which is the exact intention, and if an external arg is necessary, since in the ros2 folder the cpp/hpp are called
robotinterface2_ros
(without the 2 suffix), but then in the cmake the name is robotinterface2_ros2@alaurenzi
The text was updated successfully, but these errors were encountered: