Skip to content

Commit

Permalink
sycing between repositories
Browse files Browse the repository at this point in the history
merging some changes from the im-clever repository into this one
  • Loading branch information
Juxi committed Mar 31, 2014
1 parent 104523a commit 397b014
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 5 deletions.
Binary file added Videos/FilterTest.ogv
Binary file not shown.
Binary file added Videos/MovingBlueCup.ogv
Binary file not shown.
Binary file added Videos/MovingBlueCup1.ogv
Binary file not shown.
Binary file added Videos/TeaBoxFilter working starts at 50s.m4v
Binary file not shown.
Binary file added Videos/TeaBoxFilter working.ogv
Binary file not shown.
Binary file added Videos/icVision1.ogv
Binary file not shown.
Binary file added Videos/icVision1a.ogv
Binary file not shown.
Binary file added Videos/icVision2.ogv
Binary file not shown.
Binary file added Videos/icVision3.ogv
Binary file not shown.
Binary file added Videos/icVision_Glass.ogv
Binary file not shown.
Binary file added Videos/icub-PlaceObject1.ogv
Binary file not shown.
Binary file added Videos/icub-PlaceObject2.ogv
Binary file not shown.
5 changes: 3 additions & 2 deletions src/core/core_module.cpp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright: (C) 2011-2012 Juxi Leitner // Copyright: (C) 2011-2014 Juxi Leitner
// Author: Juxi Leitner <juxi.leitner@gmail.com> // Author: Juxi Leitner <juxi.leitner@gmail.com>
// find more information at http://Juxi.net/projects/icVision/ // find more information at http://Juxi.net/projects/icVision/
// CopyPolicy: Released under the terms of the GNU GPL v2.0. // CopyPolicy: Released under the terms of the GNU GPL v2.0.
Expand Down Expand Up @@ -370,6 +370,7 @@ bool CoreModule::respond(const yarp::os::Bottle& command, yarp::os::Bottle& repl
bool getall = false; bool getall = false;


reply.clear(); reply.clear();
reply.addString("OK");


if( command.size() < 2 ) { if( command.size() < 2 ) {
// reply.addString("ERROR: The syntax should be:"); // reply.addString("ERROR: The syntax should be:");
Expand All @@ -389,7 +390,7 @@ bool CoreModule::respond(const yarp::os::Bottle& command, yarp::os::Bottle& repl
if( command.get(0).asString() == "list" || command.get(0).asString() == "ls" ){ if( command.get(0).asString() == "list" || command.get(0).asString() == "ls" ){


reply.clear(); reply.clear();
reply.addString("list"); reply.addString("OK");


std::vector<ModuleInfo>::iterator itr; std::vector<ModuleInfo>::iterator itr;
for ( itr = listOfModules.begin(); itr != listOfModules.end(); ++itr ) { for ( itr = listOfModules.begin(); itr != listOfModules.end(); ++itr ) {
Expand Down
10 changes: 8 additions & 2 deletions src/icFilterModule/icEvolvedFilterModule.cpp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright: (C) 2011-2012 Juxi Leitner // Copyright: (C) 2011-2014 Juxi Leitner
// Author: Juxi Leitner <juxi.leitner@gmail.com> // Author: Juxi Leitner <juxi.leitner@gmail.com>
// find more information at http://Juxi.net/projects/icVision/ // find more information at http://Juxi.net/projects/icVision/
// CopyPolicy: Released under the terms of the GNU GPL v2.0. // CopyPolicy: Released under the terms of the GNU GPL v2.0.
Expand Down Expand Up @@ -28,6 +28,7 @@ EvolvedFilterModule::EvolvedFilterModule() :
setName("EvolvedFilter"); setName("EvolvedFilter");
gray = red = green = blue = h = s = v = NULL; gray = red = green = blue = h = s = v = NULL;


m_MoBeEObjectName = "cup1";
inDebugMode = false; inDebugMode = false;


m_ImageWidth = 640; m_ImageWidth = 640;
Expand Down Expand Up @@ -615,7 +616,12 @@ bool EvolvedFilterModule::writePositionBottle(const CvPoint fp1, const CvPoint f
// TODO sanity check // TODO sanity check
Bottle *pos3d = in.get(2).asList(); Bottle *pos3d = in.get(2).asList();
if(!pos3d->isNull()) if(!pos3d->isNull())
setWorldPositionOfObject(pos3d->get(0).asDouble(), pos3d->get(1).asDouble(), pos3d->get(2).asDouble(), "cup1"); // "cup1"); // setWorldPositionOfObject(pos3d->get(0).asDouble(), pos3d->get(1).asDouble(), pos3d->get(2).asDouble(), "cup1"); // "cup1");
setWorldPositionOfObject(
pos3d->get(0).asDouble(), pos3d->get(1).asDouble(), pos3d->get(2).asDouble(),
m_MoBeEObjectName.c_str() // "cup1");
);



} }


Expand Down
3 changes: 2 additions & 1 deletion src/icFilterModule/icEvolvedFilterModule.h
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright: (C) 2011-2012 Juxi Leitner // Copyright: (C) 2011-2014 Juxi Leitner
// Author: Juxi Leitner <juxi.leitner@gmail.com> // Author: Juxi Leitner <juxi.leitner@gmail.com>
// CopyPolicy: Released under the terms of the GNU GPL v2.0. // CopyPolicy: Released under the terms of the GNU GPL v2.0.


Expand Down Expand Up @@ -30,6 +30,7 @@ class EvolvedFilterModule : public icFilterModule {
// member vars // member vars
bool m_outOfSyncWarning; bool m_outOfSyncWarning;
int m_ImageWidth, m_ImageHeight; int m_ImageWidth, m_ImageHeight;
std::string m_MoBeEObjectName; // "cup1"




// for evolved filter // for evolved filter
Expand Down

0 comments on commit 397b014

Please sign in to comment.