Skip to content

Commit

Permalink
Merge pull request #6 from bmagyar/master
Browse files Browse the repository at this point in the history
Merge from PAL svn to github
  • Loading branch information
bmagyar committed Mar 20, 2014
2 parents d61e019 + 7a89072 commit 26ccbb5
Show file tree
Hide file tree
Showing 44 changed files with 23 additions and 61 deletions.
4 changes: 1 addition & 3 deletions blort/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
# set(ROS_BUILD_TYPE Release)
set(ROS_BUILD_TYPE RelWithDebInfo)
set(ROS_BUILD_TYPE Release)

rosbuild_init()

Expand Down Expand Up @@ -38,7 +37,6 @@ rosbuild_add_compile_flags(module_glwindow -DLINUX)
target_link_libraries(module_glwindow GLU GL glut X11 rt)

rosbuild_add_library(module_tomgine
src/TomGine/tgMathlib.cpp
src/TomGine/tgVector3.cpp
src/TomGine/tgTimer.cpp
src/TomGine/tgTexture.cpp
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Array.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Array.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_ARRAY_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Array.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Array.ic 34111 2012-07-03 14:29:54Z student5 $
* TODO: maybe some optimisations, beautifications
*/

Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/CodebookEntry.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: CodebookEntry.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/CodebookEntry.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: CodebookEntry.ic 34111 2012-07-03 14:29:54Z student5 $
*/

namespace P
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Config.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Config.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_CONFIG_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/ConfigFile.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: ConfigFile.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_CONFIG_FILE_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Definitions.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Definitions.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_DEFINITIONS_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/DetectGPUSIFT.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: DetectGPUSIFT.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/DetectSIFT.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: DetectSIFT.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Except.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Except.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_EXCEPT_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Geometry.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Geometry.hh 37862 2012-12-11 10:54:23Z dani $
*
* Johann Prankl, 30.11.2006
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Geometry.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Geometry.ic 34111 2012-07-03 14:29:54Z student5 $
*/

#include <math.h>
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Homography.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Homography.hh 37862 2012-12-11 10:54:23Z dani $
* Johann Prankl, 2010-03-30
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Homography.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Homography.ic 34111 2012-07-03 14:29:54Z student5 $
*/

#include <math.h>
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/KeyClusterPair.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: KeyClusterPair.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Keypoint.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Keypoint.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/KeypointDescriptor.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: KeypointDescriptor.hh 37862 2012-12-11 10:54:23Z dani $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/KeypointPair.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: KeypointPair.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Math.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Math.hh 34111 2012-07-03 14:29:54Z student5 $
*
* Michael Zillich, 2004-3-04
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Math.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Math.ic 34111 2012-07-03 14:29:54Z student5 $
*
* Michael Zillich, 2004-3-04
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/ModelObject3D.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: ModelObject3D.hh 34111 2012-07-03 14:29:54Z student5 $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/ODetect3D.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: ODetect3D.hh 37862 2012-12-11 10:54:23Z dani $
* Simple RANSAC based 3d object detector
*
* Johann Prankl, 2010-01-27
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Object3D.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Object3D.hh 37862 2012-12-11 10:54:23Z dani $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/PNamespace.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: PNamespace.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_NAMESPACE_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/PoseCv.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: PoseCv.hh 37862 2012-12-11 10:54:23Z dani $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/SDraw.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: SDraw.hh 37862 2012-12-11 10:54:23Z dani $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/SMatrix.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: SMatrix.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_SMATRIX_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/SMatrix.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: SMatrix.ic 34111 2012-07-03 14:29:54Z student5 $
*/


Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/SPolygon.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: SPolygon.hh 43083 2013-07-04 14:58:30Z dani $
* Johann Prankl, 2010-01-27
* [email protected]
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Vector2.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Vector2.hh 34111 2012-07-03 14:29:54Z student5 $
*
* Michael Zillich, 2004-3-04
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Vector2.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Vector2.ic 34111 2012-07-03 14:29:54Z student5 $
*
* Michael Zillich, 2004-3-04
*/
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Vector3.hh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Vector3.hh 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef VECTOR3_HH
Expand Down
1 change: 0 additions & 1 deletion blort/include/blort/Recognizer3D/Vector3.ic
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* $Id: Vector3.ic 34111 2012-07-03 14:29:54Z student5 $
*/

#ifndef P_VECTOR3_IC
Expand Down
14 changes: 4 additions & 10 deletions blort/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
BLORT - The Blocks World Robotic Vision Toolbox <br/>
Ported and refactored version of the library.
</description>
<author>Michael Zillich, <br/>
Thomas Mörwald, <br/>
Johann Prankl, <br/>
Andreas Richtsfeld,<br/>
Bence Magyar (ROS version)</author>

<author>Michael Zillich et al., maintained by Bence Magyar</author>
<license>BSD</license>
<review status="unreviewed" notes=""/>
<url>http://ros.org/wiki/pal_blort</url>
Expand All @@ -18,10 +13,9 @@
<depend package="sensor_msgs"/>
<depend package="tf"/>
<depend package="siftgpu"/>
<rosdep name="opengl"/> <!-- libglu1 -->
<rosdep name="opengl"/>
<!-- libglu1 -->
<export>
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib"/>
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib"/>
</export>
</package>


2 changes: 2 additions & 0 deletions blort/src/Tracker/ImageProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ bool ImageProcessor::transform(float i, float j, float *ix, float *iy){
r = sqrt(x*x+y*y);
theta = atan2(y,x);

xnew = x;
ynew = y;
switch (m_lensMode) {
case NONE:
xnew = x;
Expand Down
3 changes: 0 additions & 3 deletions blort_ros/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@
<depend package="tf"/>
<depend package="dynamic_reconfigure"/>
<depend package="blort"/>

</package>


2 changes: 1 addition & 1 deletion blort_ros/src/nodes/tracker_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void TrackerNode::recovery(blort_ros::RecoveryCall srv)
ss << tracker->getModelNames()[srv.request.object_ids[i].data];
if(++i != srv.request.object_ids.size()) { ss << ", "; }
}
ROS_INFO(ss.str().c_str());
ROS_INFO_STREAM(ss.str());
}
if(recovery_client.call(srv))
{
Expand Down
9 changes: 8 additions & 1 deletion siftgpu/include/LiteWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,14 @@ class LiteWindow
if(xDisplay) return;
if(display) std::cout << "Using display ["<<display<<"]\n";

xDisplay = XOpenDisplay(display && display[0] ? display : NULL);
//xDisplay = XOpenDisplay(display && display[0] ? display : NULL);
if ( display == NULL )
xDisplay = XOpenDisplay(NULL);
else if ( display[0] != '\0' )
xDisplay = XOpenDisplay(display);
else
xDisplay = XOpenDisplay(NULL);

if(xDisplay == NULL) return;
int attrib[] = {GLX_RGBA, GLX_RED_SIZE, 1,
GLX_GREEN_SIZE, 1, GLX_BLUE_SIZE, 1, 0 };
Expand Down
2 changes: 1 addition & 1 deletion siftgpu/include/ProgramCL.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ProgramCL: public ProgramGPU
void PrintBuildLog(cl_device_id device, int all);
virtual ~ProgramCL();
virtual int UseProgram(){return 1;}
virtual void * GetProgramID() {return _kernel;}
// virtual void * GetProgramID() {return _kernel;}
friend class ProgramBagCL;
friend class ProgramBagCLN;
};
Expand Down
2 changes: 1 addition & 1 deletion siftgpu/include/ProgramGLSL.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ProgramGLSL:public ProgramGPU
void CheckLinkLog();
int LinkProgram();
operator GLuint (){return _programID;}
virtual void * GetProgramID() { return (void*) _programID; }
// virtual void * GetProgramID() { return (void*) _programID; }
public:
ProgramGLSL();
~ProgramGLSL();
Expand Down
2 changes: 1 addition & 1 deletion siftgpu/include/ProgramGPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ProgramGPU
public:
//use a gpu program
virtual int UseProgram() = 0;
virtual void* GetProgramID() = 0;
// virtual void* GetProgramID() = 0;
//not used
virtual ~ProgramGPU(){};
};
Expand Down
10 changes: 3 additions & 7 deletions siftgpu/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@
<description brief="siftgpu">

The SiftGPU library is an implementation of SIFT for GPU.

</description>
<author>Changchang Wu (library), Bence Magyar (ROS wrapper)</author>
<author>Changchang Wu, maintained by Bence Magyar</author>
<license>non-profit license from University of North Carolina</license>
<review status="unreviewed" notes=""/>
<url>http://ros.org/wiki/siftgpu</url>
<depend package="mk"/>
<export>
<rosdoc external="http://www.cs.unc.edu/~ccwu/siftgpu"/>
<cpp cflags="-I${prefix}/include"
lflags="-L${prefix}/lib -lsiftgpu"
/>
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib -lsiftgpu"/>
</export>
<rosdep name="libglew-dev"/>
<rosdep name="libdevil-dev"/>

</package>
1 change: 1 addition & 0 deletions siftgpu/src/PyramidGL.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma GCC diagnostic warning "-Wuninitialized"
////////////////////////////////////////////////////////////////////////////
// File: PyramidGL.cpp
// Author: Changchang Wu
Expand Down

0 comments on commit 26ccbb5

Please sign in to comment.