-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding manually compiled SMACC2 packages files to /opt/foxy folder #535
Comments
Generally, the /opt/ros/foxy directory is reserved for packages installed from Debian repositories. Directly copying or modifying files in /opt/ros/foxy is not standard practice and can lead to complications. For your specific situation, consider these two alternatives:
source /path/to/workspace1/install/setup.bash
source /path/to/workspace2/install/setup.bash
However, if you have a specific reason to directly extend or override the contents of /opt/ros/foxy (which is unusual or simply incorrect), you can do so by using Colcon's --install-base option. The command would be: bash colcon build --install-base /opt/ros/foxy Be aware that this might require changing the write permissions of the /opt/ros/foxy folder, which involves administrative privileges and should be done cautiously. |
Dear Pablo, Thank you for your prompt and explanatory response. You have written a well-documented implementation that is a means to an end. Thanks for everyone who contributed this library. |
I am interested in utilizing the "SMACC2". While I am aware that official support for the Foxy distribution has concluded, I am currently working on Ubuntu 20.04 LTS.
To address this, I have successfully built the "foxy" branch of the SMACC2 library from the GitHub repository by following the provided instructions https://github.com/robosoft-ai/SMACC2.
My workspace, located at
~/workspace/foxy_ws
, consists of thebuild
,install
, andlog
folders, in addition to the src folder containing the downloaded source files from the aforementioned GitHub page. Now, my objective is to copy or move each package from the install directory to the/opt/foxy
directory, ensuring that all the subfolders (i.e.,include
,lib
,share
) are correctly distributed within the/opt/foxy
directory.Here is the current structure of my workspace:
and install includes:
I am uncertain about how to incorporate packages such as
ros_timer_client
,smacc2
,smacc2_msgs
,sm_atomic
, andsm_atomic_mode_states
into any workspace without being confined to~/workspace/foxy_ws
in my implementations.If anyone has encountered a similar question or has insights into this matter, I would greatly appreciate your guidance. I have conducted a search on internet but have not found a satisfactory answer.
Thank you in advance.
I have tried to run the following command in the
~/workspace/foxy_ws
sudo colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --install-base /opt/foxy
and it destroyed the destroy the integrity of ros2 framework. I could not run the fundamental
ros2 run
commands after that.┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: