Robot implementation using Robot Operating System V2
PUblisher/subscriber nodes HOLA Test on branches HOLA alo123
pruebita lolo alosito el mejor \n \ AmigoblesssOG pruebita otra 2
Test on branches
- Create a workspace folder in home
- Create a new folder named src inside your workspace
- Go to home in a terminal:
cd ~- Go to src folder in your workspace. Change my_name_ws accordingly
cd my_name_ws/src/Clone without folder instructions> https://stackoverflow.com/questions/17581379/git-clone-without-project-folder
command example:
git clone https://github.com/roncanciovl/Robot-over-ROS2.git .- Resolve dependencies according to your distro
cd ..
rosdep install -i --from-path src --rosdistro foxy -yReturn: All required rosdeps installed successfully
This may requiere before
sudo rosdep initrosdep update-
Open VSCode, got to the menu and select file, an then select open folder and select our workspace in home. This show our workspace in the VScode explorer
-
In a terminal go to your workspace
colcon build- Sourve the overlay according to your distro
source /opt/ros/foxy/setup.bash. install/local_setup.bashhttps://docs.ros.org/en/foxy/How-To-Guides/Using-Python-Packages.html
sudo apt install python3-pipsudo apt install python3-virtualenvFrom your workspace directory run this command
virtualenv -p python3 ./venvsource ./venv/bin/activateMake sure that colcon doesn’t try to build the venv
touch ./venv/COLCON_IGNORENext, install the Python packages that you want in your virtual environment:
if any requirement file is in the src folder, then install them for command line
pip install -r src/requirements.txtNow you can build your workspace and run your python node that depends on packages installed in your virtual environment.
- For new features, create a new branch. Name it according to the feature. You may add it to the github repo.
BUENOS DIAS :) ADIOS hola willy HOla reyes