Update of /cvsroot/playerstage/code/gazebo/server/bindings/python
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13309/server/bindings/python
Added Files:
Tag: ogre
SConscript mygazebo.cc
Log Message:
Added new gazebo files
--- NEW FILE: SConscript ---
#Import variable
Import('env prefix staticObjs sharedObjs')
#env = Environment (
# CC = 'g++',
# CCFLAGS = Split ('-pthread -pipe -O2'),
# LINKFLAGS=Split(''),
#
# CPPPATH = [
# '#.',
# '#server',
# '#models',
# '#libgazebo',
# '#rendering',
# '#sensors',
# '#sensors/camera',
# '#physics',
# '#physics/ode',
# '/usr/include/python2.4'
# ],
#)
sources = Split('mygazebo.cc')
objs = sharedObjs
objs.append(env.SharedObject(sources))
lib = env.SharedLibrary('mygazebo', objs, LIBS=['gazebo', 'boost_python'],
LIBPATH=['#/libgazebo'])
env.Install(prefix+'lib/python2.4/site-packages',lib)
--- NEW FILE: mygazebo.cc ---
#include <boost/python.hpp>
#include <string>
#include "Entity.hh"
#include "Model.hh"
using namespace boost::python;
BOOST_PYTHON_MODULE(mygazebo)
{
class_<Entity>("Entity")
// .def("GetId",&Entity::GetId)
//.def("GetParentId",&Entity::GetParentId)
;
class_<Model, bases<Entity> >("Model")
.def("GetName",&Model::GetName, return_internal_reference<1>())
.def("SetName",&Model::SetName)
;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit