In the following part, if you are executing on (pc@lab), you need not to
run source /home/pc/ediControler/catkin_ws/devel/setup.bash
In the gym obs, keys are "status" and "images' (deprecated soon).
In the lmdb dataset, keys are "status" and "sensors'.
cd catkin_ws
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
This section includes ROS Configurations and starting several hardware interfaces.
- Set hosts with on both master (pc@lab) and slaves
Add to your hosts file with sudo vim /etc/hosts
:
192.168.1.240 lab
192.168.1.250 timetserver
192.168.1.38 radiance_wired
192.168.1.147 radiance_wireless
-
Run
start_publishing.sh
on master (pc@lab).It will firstly `source /home/pc/ediControler/catkin_ws/devel/setup.bash` and then start nodes below: ``` Camera Nodes Status Node Real Environment Control Backend Sim Environment ```
-
Set environment variable on your computer.
export ROS_HOSTNAME=timetserver # Replace this hostname
export ROS_MASTER_URI=http://192.168.1.240:11311 # Do not Replace this one
- Add
edi_gym
directory to your directory, Or you can add a link to the site-package path.
echo /home/radiance/projects/ediControler/ > /home/radiance/miniconda3/envs/ml/lib/python3.8/site-packages/edi_gym.pth
-
(New) Run
source /home/pc/ediControler/catkin_ws/devel/setup.bash
-
Run a test example
python edi_env_example.py
.
-
(New) Run
source /home/pc/ediControler/catkin_ws/devel/setup.bash
-
Run demo arm
python hardware/arm_demo.py
.
-
(New) Run
source /home/pc/ediControler/catkin_ws/devel/setup.bash
-
Run recording backend
python data_collection/recorder.py
.- This command initiates a background data collection program. In the script, you can modify two parameters:
lmdb_save_path_is_fixed
anddelete_bag
.lmdb_save_path_is_fixed
: If set toTrue
, all episodes from this session will be stored in a single database directory. If set toFalse
, a new database directory will be created for each episode.delete_bag
: This parameter determines whether the recorded rosbag files are deleted.
- This command initiates a background data collection program. In the script, you can modify two parameters:
-
Run recording frontend (keyboard input)
python data_collection/keyboard_record_trigger.py
.
Recording backend will be integrated to start_publishing.sh
in the future.
The dataset is organized into the following directory structure for efficient access and management:
dataset/
bag/
- This directory contains the bag files. These are typically used for storing and transporting a collection of files.
train_xxx_lmdb/
- This directory contains the LMDB (Lightning Memory-Mapped Database) files for training. LMDB is used for its high performance and efficiency in reading/writing large data sets.
Please check the python files for passing arguments.
-
(New) Run
source /home/pc/ediControler/catkin_ws/devel/setup.bash
-
Run
python data_collection/bag_loader.py -i -a
.
-
(New) Run
source /home/pc/ediControler/catkin_ws/devel/setup.bash
-
Run
python data_collection/lmdb_interface.py -i -a
.
To run in a docker container, you need to run
CUDA="--gpus all -e NVIDIA_DRIVER_CAPABILITIES=compute,utility -e NVIDIA_VISIBLE_DEVICES=all "
sudo docker run -it --rm --net=host --shm-size 32G \
-v <your directory>:/workspace/<docker directory> \
$CUDA edi/ros