A better solution could be the graphics3d driver: http://playerstage.sourceforge.net/doc/Player-svn/player/classPlayerCc_1_1Graphics3dProxy.html.

This can draw directly in the Player/Stage simulation.


On 26 November 2012 15:59, Jan Stevens <janstevens007@gmail.com> wrote:

Dear email subscribers,

I'm trying to plot the particles (returned from amcl) on an opencv window. I
then have my stage driving robot and another window containing my map and
the particles (and maybe later the robot position).

I've added my code but there are linking problems. My current cmakelists.txt
file contains the following code:

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT (playerstagetest)
SET(PROJECT_VERSION 0.0.1 CACHE STRING "CMake Example Project Version
Number")
set(CMAKE_BUILD_TYPE "DEBUG")
set(CMAKE_C_FLAGS_DEBUG "-g -Wall ")
set(CMAKE_C_FLAGS_RELEASE "-O2 ")
set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall ")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 ")
SET (CMAKE_MODULE_PATH "/usr/local/share/cmake/Modules")

INCLUDE (UsePlayerC++)
INCLUDE (UsePlayerPlugin)
FIND_PACKAGE( OpenCV REQUIRED)
PLAYER_ADD_PLAYERCPP_CLIENT (exampleclient SOURCES main.cpp LIBDIRS
${OpenCV_LIBS})

Now this gives me errors like "undefined reference for cvShowImage". Anyone
knows a solution? or maybe a better method to display particles from amcl?

Thanks, regards
--
View this message in context: http://old.nabble.com/Displaying-Particles-in-OpenCV-tp34723137p34723137.html
Sent from the playerstage-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users