jrl-umi3218 / mc_openrtm

Interface between OpenRTM and mc_rtc
BSD 2-Clause "Simplified" License
3 stars 10 forks source link

Should I install this software with "sudo" option? #18

Closed TsuruMasato closed 2 years ago

TsuruMasato commented 2 years ago

Hello, this is Masato Tsuru in JRL, AIST, Japan.

I am trying to install this software from source by using $ccmake .. + $ make -j8 + $ make install commands.

However, the installation process seems to go into /opt/ros/~~ directory. In my understanding, all mc_rtc and related components are installed into somewhere(/home/openrtp? I don't know exactly...) without sudo option. Actually, I checked that my CMAKE_INSTALL_PREFIX in mc_openrtm is surely set to "/home/masato/openrtp", which is same as the other AIST JRL libraries' installation location.

And in my case, mc_openrtm is installed by the most useful script build_and_install.sh in mc_rtc. I should not run it with sudo option, I think.

Screenshot from 2022-07-05 19-21-45

In conclusion, should I use sudo command to install mc_openrtm into my system? Or is there any option to specify another location to install?

gergondet commented 2 years ago

Hi @TsuruMasato

mc_openrtm will detect hrpsys-base installation automatically and install files. It seems to find an installation in ROS which is maybe not the one you want to target.

Because it is using pkg-config to find hrpsys-base you can try two things:

TsuruMasato commented 2 years ago

Thanks to your advice, maybe I could fix it!! I changed the order of environment path, to search openrtp directory first.

Actually, I am now using RTM-ROS bridge to pass virtual PointCloud (in Chorenoid) from RTM topic to ROS topic. So I have ros-melodic-hrpsys-base and some related apt packages in my /opt/ros/melodic directory. It caused that mis-direction in package config.

Screenshot from 2022-07-06 15-07-38

If there were no reactions from you, I couldn't understand the problem. Thank you so much.