tested on Ubuntu 18.04 and 20.04
Environment setup
conda create --name py38 --file spec-file.txt python=3.8
conda activate py38
Install CLIP + opencv
pip install ftfy regex tqdm dqrobotics rospkg similaritymeasures Cython
pip install git+https://github.com/openai/CLIP.git
pip install opencv-python
Download models
pip install gdown=4.6.1
gdown --folder https://drive.google.com/drive/folders/1r8BYvpu1AMj9tY0gt5YYigYgZqhzHQhf?usp=sharing -O models/.
Download synthetic dataset
gdown --folder https://drive.google.com/drive/folders/11NAmB1Rma-gOsh-b-KZB90xjGplal2Z8?usp=sharing -O data/.
Download image dataset(optional)
gdown --id 1AyWxJ9SSjWML6rOgokFsxOjaU2BEUP9q -O image_data.zip
unzip image_data.zip -o image_data/.
Configure the paths at src/config.py
follow the notebook interactive_user_study.ipynb
cd src
python interactive.py
How to use:
- press 'o' to load the original trajectory
- press 'm' to modify the trajectory using our model for the given input on top.
- press 't' to set a different interaction text.
- press 'u' to update the trajectory setting the modified traj as the original one
instructions for additional keyboard commands are shown in the script output.
IMPORTANT: Make sure that conda isn't initialized in your .bashrc file, otherwise, you might face conflicts between the Python versions
For realtime object detection:
git clone https://github.com/arthurfenderbucker/realsense_3d_detector.git
terminal 1
roscore
terminal 2
roscd latte/src
python interactive.py --ros true
install coppelia simulator
https://www.coppeliarobotics.com/helpFiles/en/ros1Tutorial.htm
add export COPPELIASIM_ROOT_DIR=~/path/to/coppeliaSim/folder
to your ~/.bashrc
cd <ros_workspace>/src
git clone https://github.com/CoppeliaRobotics/ros_bubble_rob
git clone --recursive https://github.com/CoppeliaRobotics/simExtROS.git sim_ros_interface
cd <ros_workspace>
catkin config -DPYTHON_EXECUTABLE=$CONDA_PREFIX/bin/python -DPYTHON_INCLUDE_DIR=$CONDA_PREFIX/include/python3.8 -DPYTHON_LIBRARY=$CONDA_PREFIX/lib/libpython3.8.so -DSETUPTOOLS_DEB_LAYOUT=OFF
catkin config --install
catkin build
overview of the project model_overview.ipynb
model variations and ablation studies Results.ipynb
user study interface user_study.py
generate syntetic dataset src/data_generator_script.py