-
cd ${HOME}
# Navigate to the home directory of the current user. -
mkdir -p ${HOME}/projects/battery_cell_ws/src
# Create the directory structure for the project if it doesn't exist. -
cd ${HOME}/projects/battery_cell_ws/src
# Change to the source directory of the project. -
sudo apt update -y && sudo apt upgrade -y && sudo apt install wget -y
# Update the system and install wget if it's not already installed. -
wget --backups=1 https://raw.githubusercontent.com/JRL-CARI-CNR-UNIBS/battery_cell/master/deps.repos
# Download the repository file. -
vcs import < deps.repos
# Import dependencies from the repository file. Install vcstool withsudo apt-get install python3-vcstool
if needed. -
Install further dependencies # Install required libraries and tools for the project.
-
sudo apt install libmosquitto-dev liblog4cxx-dev libboost-all-dev libczmq-dev liburdfdom-dev liburdfdom-headers-dev -y
# Install development libraries for MQTT, logging, Boost, ZMQ, and URDF. -
sudo apt install ros-humble-moveit ros-humble-ros2-control ros-humble-ros2-controllers ros-humble-moveit-visual-tools ros-humble-navigation2 -y
# Install ROS (Robot Operating System) packages. -
Install ethercat (EtherLab library): # Set up the EtherLab library for EtherCAT communication.
cd ${HOME}
# Return to the user's home directory.mkdir -p ${HOME}/projects/software_modules
# Create a directory for software modules if it doesn't exist.cd ${HOME}/projects/software_modules
# Change to the software modules directory.- Follow the instructions at EtherLab Installation Guide (Chapter: Installing EtherLab)
- Note: When configuring the network adapter for EtherCAT, use
ifconfig
to find the correct network adapter.
- Note: When configuring the network adapter for EtherCAT, use
-
Install ethercat_driver_ros2: # Install the ROS 2 driver for EtherCAT devices.
cd ${HOME}/projects/battery_cell_ws/
# Navigate back to the workspace directory.- Follow the instructions at ethercat_driver_ros2 Installation Guide (Chapter: Building ethercat_driver_ros2)
- Ensure all packages are correctly compiled by running
colcon build ...
without errors (warnings are acceptable).
-
-
Install Aria # Install Aria software in the project.
cd ${HOME}/projects/battery_cell_ws/src/Aria/
# Change to the Aria directory within the project.bash config.sh
# Run the configuration script.- Insert user password if prompted.
-
cd ${HOME}/projects/battery_cell_ws && colcon build --symlink-install --continue-on-error --cmake-args -DUSE_ROS1=False
# Build the entire project with ROS 2 settings.- if some packages fail to build, try
source ${HOME}/projects/battery_cell_ws/install/setup.bash
and then repeat step 9
- if some packages fail to build, try
-
echo "source ${HOME}/projects/battery_cell_ws/install/setup.bash" >> ~/.bashrc
-
echo 'export CNR_PARAM_ROOT_DIRECTORY="/tmp/cnr_param"' >> ~/.bashrc && echo 'export IK_SOLVER_LOGGER_CONFIG_PATH="${HOME}/projects/battery_cell_ws/install/ik_solver/share/ik_solver/config/default_logger.yaml"' >> ~/.bashrc
-
source ~/.bashrc
-
Notifications
You must be signed in to change notification settings - Fork 0
JRL-CARI-CNR-UNIBS/battery_cell
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published