Skip to content

Commit b79219c

Browse files
authored
Merge pull request #14 from ethz-asl/feature/data
Feature/data
2 parents 99e17fb + e298ec7 commit b79219c

File tree

5 files changed

+22
-27
lines changed

5 files changed

+22
-27
lines changed

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ If you find this package useful for your research, please consider citing our pa
2727

2828
* Lukas Schmid, Olov Andersson, Aurelio Sulser, Patrick Pfreundschuh, and Roland Siegwart. "**Dynablox: Real-time Detection of Diverse Dynamic Objects in Complex Environments**" in *IEEE Robotics and Automation Letters (RA-L)*, 2023. \[ [ArXiv](https://arxiv.org/abs/2304.10049) | [Video](https://www.youtube.com/watch?v=NA13fRWlqRQ) \]
2929
```bibtex
30-
@inproceedings{schmid2023dynablox,
30+
@article{schmid2023dynablox,
3131
title={Dynablox: Real-time Detection of Diverse Dynamic Objects in Complex Environments},
3232
author={Schmid, Lukas, and Andersson, Olov, and Sulser, Aurelio, and Pfreundschuh, Patrick, and Siegwart, Roland},
33-
booktitle={IEEE Robotics and Automation Letters},
33+
booktitle={IEEE Robotics and Automation Letters (RA-L)},
3434
year={2023},
3535
volume={},
3636
number={},
@@ -91,18 +91,16 @@ To run the demos we use the [Urban Dynamic Objects LiDAR (DOALS) Dataset](https
9191
To download the data and pre-process it for our demos, use the provided script:
9292
```bash
9393
roscd dynablox_ros/scripts
94-
# Or your preferred data destination.
95-
./download_doals_data.sh /home/$USER/data/DOALS
94+
./download_doals_data.sh /home/$USER/data/DOALS # Or your preferred data destination.
9695
```
9796

98-
> __note__ The dataset will be released shortly!
99-
10097
We further collect a new dataset featuring diverse dynamic objects in complex scenes.
98+
The full dataset and description ca nbe found [here](https://projects.asl.ethz.ch/datasets/doku.php?id=dynablox).
10199
To download the processed ready-to-run data for our demos, use the provided script:
102100
```bash
103101
roscd dynablox_ros/scripts
104-
# Or your preferred data destination.
105-
./download_dynablox_data.sh /home/$USER/data/Dynablox
102+
./download_dynablox_data.sh /home/$USER/data/Dynablox # Or your preferred data destination.
103+
106104
```
107105

108106
# Examples
@@ -122,7 +120,6 @@ roscd dynablox_ros/scripts
122120
![Run DOALS Example](https://user-images.githubusercontent.com/36043993/232138501-84250c43-236e-46f6-9b50-af54312215a7.png)
123121

124122
## Running a Dynablox Sequence
125-
> __note__ The dataset will be released shortly!
126123

127124
1. If not done so, download the Dynablox dataset as explained [here](#datasets).
128125

@@ -138,7 +135,6 @@ roscd dynablox_ros/scripts
138135
4. You should now see dynamic objects being detected as the sensor moves through the scene:
139136
![Run Dynablox Example](https://user-images.githubusercontent.com/36043993/232140093-ee99a919-d2ad-4dc8-95ac-fa047b901f94.png)
140137

141-
142138
## Running and Evaluating an Experiment
143139

144140
### Running an Experiment

dynablox/include/dynablox/common/index_getter.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ class IndexGetter {
1515
: indices_(std::move(indices)), current_index_(0) {}
1616
bool getNextIndex(IndexT* index) {
1717
CHECK_NOTNULL(index);
18-
mutex_.lock();
18+
std::lock_guard<std::mutex> lock(mutex_);
1919
if (current_index_ >= indices_.size()) {
20-
mutex_.unlock();
2120
return false;
2221
}
2322
*index = indices_[current_index_];
2423
current_index_++;
25-
mutex_.unlock();
2624
return true;
2725
}
2826

29-
// Not thread safe, use for setup only!
30-
void reset() { current_index_ = 0u; }
27+
// Resets the index getter to iterate over the same indices again.
28+
void reset() {
29+
std::lock_guard<std::mutex> lock(mutex_);
30+
current_index_ = 0u;
31+
}
3132

3233
private:
3334
std::mutex mutex_;

dynablox_ros/launch/play_doals_data.launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<launch>
44
<!-- Arguments -->
55
<arg name="bag_file" default="" /> <!-- Path to rosbag to be played -->
6-
<arg name="player_rate" default="1" /> <!-- 0.3 -->
6+
<arg name="player_rate" default="1" /> <!-- Realtime factor to play data -->
77

88
<!-- Play the data -->
99
<node name="player" pkg="rosbag" type="play" args="--quiet --rate $(arg player_rate) $(arg bag_file) -d 1" />

dynablox_ros/launch/play_dynablox_data.launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<launch>
44
<!-- Arguments -->
55
<arg name="bag_file" default="" /> <!-- Path to rosbag to be played -->
6-
<arg name="player_rate" default="1" /> <!-- 0.3 -->
6+
<arg name="player_rate" default="1" /> <!-- Realtime factor to play data -->
77

88
<!-- Play the data -->
99
<node name="player" pkg="rosbag" type="play" args="--quiet --rate $(arg player_rate) $(arg bag_file) -d 1" />

dynablox_ros/scripts/download_dynablox_data.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ else
1515
fi
1616

1717
# Download.
18-
# mkdir -p $1
19-
echo ""
20-
echo "The Dynablox Dataset can not yet be downloaded, it will be released shortly."
21-
22-
# echo "Downloading and processing scenes. This may take a few minutes ...";
23-
24-
# Hauptgebaeude.
25-
# wget http://robotics.ethz.ch/~asl-datasets/2021_ICRA_dynamic_object_lidar_dataset/scenes/hauptgebaeude.zip -P $1
26-
# unzip $1/hauptgebaeude.zip -d $1
18+
mkdir -p $1
19+
echo "";
20+
echo "Downloading and processing scenes. This may take a few minutes ...";
2721

22+
# Get data.
23+
wget http://robotics.ethz.ch/~asl-datasets/2023_RAL_Dynablox/processed.zip -P $1
24+
unzip $1/processed.zip -d $1
25+
rm $1/processed.zip
2826

2927
# Finished.
30-
# echo "Successfully downloaded and processed the DOALS dataset to '$1'.";
28+
echo "Successfully downloaded and processed the Dynablox dataset to '$1'.";
3129
exit 0

0 commit comments

Comments
 (0)