Clone the repository into the Python 3 catkin workspace
- In a non python 3 environment. Source the
anfis
repository - Run
./simulation.sh
script to start Gazebo environment
- Source the
anfis
repository in Python 3 environment- source the Python 3 virtual environment as stated below in section
Python 3 Setup
usingsouce /path/to/py3venv/bin/active
- Source the ROS catkin workspace
source ~/python3_ws/devel/setup.bash
- source the Python 3 virtual environment as stated below in section
- Ros run or run in Python 3 virtual environment
main.py
run: source ../../py3venv/bin/activate
do another source: source ~/python3_ws/devel/setup.bash
ssh -L 16007:127.0.0.1:16007 nvidia@192.168.0.12
tensorboard --logdir=runs --samples_per_plugin images=999 --port=16007
tensorboard --logdir=runs --samples_per_plugin images=999
Otherwise, run the script: tensorboard.sh
in there select the port to set up the server to.
The tutorial is based on https://youtu.be/oxK4ykVh1EE?t=1232
The instructions steps are also demonstrated here. There are some differences demonstrated below. https://github.com/AUVSL/Jackal-maintenance-and-upgrade/blob/main/python3_setup_instuctions.sh
Line 28 be sure to change the file path to the location of your python virtual environment.
Rebuilding the Python environment
catkin clean; catkin build --cmake-args -DPYTHON_EXECUTABLE:FILEPATH=/home/auvsl/python3_ws/py3env/bin/python
git clone https://github.com/ros/ros_comm.git
pip install defusedxml netifaces
pip install -U catkin_tools
git clone https://github.com/catkin/catkin_tools.git
cd catkin_tools
pip3 install -r requirements.txt --upgrade
python3 setup.py install --record install_manifest.txt
python3 setup.py develop
git clone https://github.com/ros/roscpp_core