Tests Robobo

This commit is contained in:
Unknown 2018-08-03 17:14:26 +02:00
parent f4e33539ee
commit 09d1eeb838
31 changed files with 39412 additions and 57602 deletions

View file

@ -6,3 +6,319 @@
#IncludeRegexTransform:
./io_png/libs/png/png.h
../zlib/zlib.h
./io_png/libs/zlib/zlib.h
pngconf.h
./io_png/libs/png/pngconf.h
crtdbg.h
-
./io_png/libs/png/pngconf.h
pngusr.h
./io_png/libs/png/pngusr.h
config.h
./io_png/libs/png/config.h
windows.h
-
stdio.h
-
stdio.h
-
sys/types.h
-
setjmp.h
-
strings.h
-
string.h
-
stdlib.h
-
fp.h
-
math.h
-
m68881.h
-
mem.h
-
alloc.h
-
malloc.h
-
time.h
-
dos.h
-
./io_png/libs/zlib/zconf.h
windows.h
-
sys/types.h
-
unistd.h
-
unixio.h
-
./io_png/libs/zlib/zlib.h
zconf.h
./io_png/libs/zlib/zconf.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ASIFT_matcher.hpp
stdio.h
-
stdlib.h
-
string.h
-
time.h
-
vector
-
sstream
-
omp.h
-
demo_lib_sift.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/demo_lib_sift.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
frot.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/frot.h
fproj.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/fproj.h
compute_asift_keypoints.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/compute_asift_keypoints.h
compute_asift_matches.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/compute_asift_matches.h
CImg.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/CImg.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/CImg.h
cstdio
-
cstdlib
-
cstdarg
-
cstring
-
cmath
-
cfloat
-
climits
-
ctime
-
exception
-
algorithm
-
stdio.h
-
sys/types.h
-
sys/time.h
-
sys/stat.h
-
unistd.h
-
dirent.h
-
fnmatch.h
-
windows.h
-
shlobj.h
-
process.h
-
io.h
-
initializer_list
-
utility
-
X11/Xlib.h
-
X11/Xutil.h
-
X11/keysym.h
-
pthread.h
-
sys/ipc.h
-
sys/shm.h
-
X11/extensions/XShm.h
-
X11/extensions/Xrandr.h
-
omp.h
-
cstddef
-
cv.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/cv.h
highgui.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/highgui.h
png.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/png.h
jpeglib.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/jpeglib.h
setjmp.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/setjmp.h
tiffio.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/tiffio.h
minc_io_simple_volume.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/minc_io_simple_volume.h
minc_1_simple.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/minc_1_simple.h
minc_1_simple_rw.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/minc_1_simple_rw.h
zlib.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/zlib.h
curl/curl.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/curl/curl.h
Magick++.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/Magick++.h
fftw3.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/fftw3.h
Board.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/Board.h
ImfRgbaFile.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ImfRgbaFile.h
ImfInputFile.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ImfInputFile.h
ImfChannelList.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ImfChannelList.h
ImfMatrixAttribute.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ImfMatrixAttribute.h
ImfArray.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ImfArray.h
tinyexr.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/tinyexr.h
CImg.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/CImg.h
stdint.h
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/compute_asift_keypoints.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
demo_lib_sift.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/demo_lib_sift.h
frot.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/frot.h
fproj.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/fproj.h
vector
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/compute_asift_matches.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
demo_lib_sift.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/demo_lib_sift.h
frot.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/frot.h
fproj.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/fproj.h
vector
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/demo_lib_sift.h
stdlib.h
-
assert.h
-
numerics1.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/numerics1.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
filter.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/filter.h
domain.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/domain.h
splines.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/splines.h
flimage.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/flimage.h
vector
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/domain.h
numerics1.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/numerics1.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
splines.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/splines.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/filter.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/flimage.h
iostream
-
string
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/fproj.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
vector
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/frot.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
vector
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
stdio.h
-
stdlib.h
-
math.h
-
time.h
-
float.h
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/numerics1.h
stdio.h
-
stdlib.h
-
math.h
-
fstream
-
iostream
-
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/splines.h
numerics1.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/numerics1.h
library.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/library.h
string.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/string.h
vector
-
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/test_ASIFT.cpp
ASIFT_matcher.hpp
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/ASIFT_matcher.hpp

View file

@ -276,5 +276,3 @@ CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/numerics1.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/splines.h
/home/harle/catkin_ws/src/BaxterInterface/ASIFT_tests/demo_ASIFT_src/test_ASIFT.cpp
/usr/include/opencv/cv.h
/usr/include/opencv/highgui.h

View file

@ -275,6 +275,4 @@ CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o: library.h
CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o: numerics1.h
CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o: splines.h
CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o: test_ASIFT.cpp
CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o: /usr/include/opencv/cv.h
CMakeFiles/test_ASIFT.dir/test_ASIFT.cpp.o: /usr/include/opencv/highgui.h

View file

@ -1,24 +1,6 @@
21 2
0 5
0
116.024 117.743 140.946 127.067
127.041 182.984 82.7571 322.511
223.925 126.146 9.11888e-14 8.90962e-14
116.572 104.098 7.31246e-39 3.79738e-39
258.196 39.082 0 0
164.056 165.645 0 0
202.577 116.285 8.7283e-36 7.36299e-36
134.788 167.73 0 0
152.242 132.98 2.61374e-35 3.22363e-35
174.031 99.713 0 0
130.144 161.018 1.79235e-34 4.25297e-34
252.616 48.1934 0 0
189.51 74.5927 4.82302e-35 1.42279e-35
174.216 98.0268 0 0
145.793 140.577 2.52858e-34 3.6943e-34
175.301 105.345 0 0
140.726 169.022 0 0
199.218 95.4902 0 0
136.131 159.282 0 0
145.05 156.893 2800.66 5619.78
130.144 161.018 19024.1 45141.4
1
2
3
4

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 169 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 325 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 509 KiB

After

Width:  |  Height:  |  Size: 403 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 KiB

View file

@ -137,12 +137,20 @@ int main(int argc, char **argv)
zoom1 = 1;
}
unsigned int nb_ref =2;
// unsigned int nb_ref =2;
// std::string refData[] = {
// "book_training/train_image_000.png",
// "book_training/train_image_001.png",
// "book_training/train_image_002.png",
// "book_training/train_image_003.png"};
unsigned int nb_ref =5;
std::string refData[] = {
"book_training/train_image_000.png",
"book_training/train_image_001.png",
"book_training/train_image_002.png",
"book_training/train_image_003.png"};
"robobo_references/robobo_000.png",
"robobo_references/robobo_001.png",
"robobo_references/robobo_002.png",
"robobo_references/robobo_003.png",
"robobo_references/robobo_004.png"};
// unsigned int nb_ref =21;
// std::string refData[] = {

View file

@ -1,6 +1,7 @@
<launch>
<param name="tracked_object" value="6DOF"/>
<param name="num_tilt" type="int" value="2"/>
<param name="std_dev_filter_coeff" type="int" value="2"/>
<param name="reference_txt_path" value="$(find asift_matching)/reference_data/book_references.txt"/>
<!--rosparam param="reference_data">[
"$(find asift_matching)/reference_data/train_image_000.png",

View file

@ -1,7 +1,7 @@
<launch>
<param name="tracked_object" value="6DOF"/>
<param name="num_tilt" type="int" value="2"/>
<param name="reference_txt_path" value="$(find asift_matching)/reference_data/references.txt"/>
<param name="reference_txt_path" value="$(find asift_matching)/reference_data/book_references.txt"/>
<!--rosparam param="reference_data">[
"$(find asift_matching)/reference_data/train_image_000.png",
"$(find asift_matching)/reference_data/train_image_001.png"]</rosparam-->

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 KiB

File diff suppressed because it is too large Load diff

View file

@ -6,8 +6,9 @@ ROS_matcher::ROS_matcher(): _status(MATCHER_STATUS_WAITING_INIT)
std::vector<std::string> reference_data_paths;
//Load Param
_nh.param<std::string>("tracked_object", tracked_object, "6DOF");
_nh.param<std::string>("tracked_object", tracked_object, "Object");
_nh.param<int>("num_tilt", _num_tilt, 8);
_nh.param<int>("std_dev_filter_coeff", _filter_coeff, 0);
_nh.param<std::string>("object_center_topic", center_topic,"/ASIFT_matcher/object_center");
_nh.param<std::string>("image_topic", image_topic,"/camera/rgb/image_raw");
@ -18,10 +19,10 @@ ROS_matcher::ROS_matcher(): _status(MATCHER_STATUS_WAITING_INIT)
//Subscriber
// info_sub = new message_filters::Subscriber<sensor_msgs::CameraInfo>(_nh, "camera/rgb/camera_info", 1);
image_sub = new message_filters::Subscriber<sensor_msgs::Image>(_nh, image_topic, 1);
pointcloud_sub= new message_filters::Subscriber<sensor_msgs::PointCloud2>(_nh, pointcloud_topic, 1);
_image_sub = new message_filters::Subscriber<sensor_msgs::Image>(_nh, image_topic, 1);
_pointcloud_sub= new message_filters::Subscriber<sensor_msgs::PointCloud2>(_nh, pointcloud_topic, 1);
Timesync = new message_filters::Synchronizer<MySyncPolicy>(MySyncPolicy(2), *image_sub, *pointcloud_sub);
Timesync = new message_filters::Synchronizer<MySyncPolicy>(MySyncPolicy(2), *_image_sub, *_pointcloud_sub);
Timesync-> registerCallback(boost::bind(&ROS_matcher::cameraCallback, this, _1, _2));
//Load References
@ -44,14 +45,14 @@ ROS_matcher::ROS_matcher(): _status(MATCHER_STATUS_WAITING_INIT)
}
if(_status == MATCHER_STATUS_IDLE)
ROS_INFO("Matcher Ready ! (%d references)",matcher.getNbRef());
ROS_INFO("Matcher Ready ! (%d references from %s)",matcher.getNbRef(), reference_txt_path.c_str());
}
ROS_matcher::~ROS_matcher()
{
// delete info_sub;
delete image_sub;
delete pointcloud_sub;
delete _image_sub;
delete _pointcloud_sub;
// delete Timesync;
}
@ -103,7 +104,7 @@ void ROS_matcher::cameraCallback(const sensor_msgs::Image::ConstPtr& image_msg,
int cx, cy;
// geometry_msgs::PointStamped center_msg;
rviz_interface::NamedPoint center_msg;
matcher.distFilter(2);
matcher.distFilter(_filter_coeff);
if(matcher.computeCenter(cx, cy))
{

View file

@ -37,11 +37,11 @@ protected:
//Subscriber ROS
// message_filters::Subscriber<sensor_msgs::CameraInfo>* info_sub;
message_filters::Subscriber<sensor_msgs::Image>* image_sub;
message_filters::Subscriber<sensor_msgs::PointCloud2>* pointcloud_sub;
message_filters::Subscriber<sensor_msgs::Image>* _image_sub;
message_filters::Subscriber<sensor_msgs::PointCloud2>* _pointcloud_sub;
//Matcher
int _num_tilt;
int _num_tilt, _filter_coeff;
ASIFT_matcher matcher;
MATCHER_STATUS _status;

View file

@ -11,7 +11,8 @@
<!--Matcher/-->
<param name="tracked_object" value="Foo"/>
<param name="num_tilt" type="int" value="8"/>
<param name="reference_txt_path" value="$(find asift_matching)/reference_data/book_references.txt"/>
<param name="std_dev_filter_coeff" type="int" value="2"/>
<param name="reference_txt_path" value="$(find asift_matching)/reference_data/robobo_references.txt"/>
<!--rosparam param="reference_data">[
"$(find asift_matching)/reference_data/train_image_000.png",
"$(find asift_matching)/reference_data/train_image_001.png"]</rosparam-->

View file

@ -6,11 +6,12 @@
<param name="vizualization_topic" value="/RvizInterface/visual_marker"/>
<param name="config_topic" value="/RvizInterface/interface_config"/>
<node name="RvizInterface" pkg="rviz_interface" type="RvizInterface" output="screen"/>
<node name="RvizInterface" pkg="rviz_interface" type="RvizInterface"/>
<!--Matcher/-->
<param name="tracked_object" value="Foo"/>
<param name="num_tilt" type="int" value="8"/>
<param name="std_dev_filter_coeff" type="int" value="2"/>
<param name="reference_txt_path" value="$(find asift_matching)/reference_data/book_references.txt"/>
<!--rosparam param="reference_data">[
"$(find asift_matching)/reference_data/train_image_000.png",

View file

@ -11,7 +11,7 @@ RvizInterface::RvizInterface(): _server("RvizInterface")
_n.param<std::string>("objective_topic", objective_topic,"/RvizInterface/state_objective");
_n.param<std::string>("vizualization_topic", vizualization_topic,"/RvizInterface/visual_marker");
_n.param<std::string>("config_topic", config_topic,"/RvizInterface/interface_config");
_n.param<std::string>("object_center_topic", position_topic,"/object_center");
_n.param<std::string>("object_center_topic", position_topic,"/ASIFT_matcher/object_center");
_n.param<std::string>("tracked_object", object_name,"Object");
//Topic you want to publish