loading problem instance from plugins problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

loading problem instance from plugins problem

Okal Billy
Dear Openravers,

I used to load my problem instances smoothly nut having the following simple code

//////
case OpenRAVE::PT_Planner:
            if( interfacename == "goalsetprm")
                   return InterfaceBasePtr(new GoalSetPRM(penv));
            //else if( interfacename == "goalsetprmext")
            //    return InterfaceBasePtr(new GoalSetPRMExt(penv));
            break;
           
        case OpenRAVE::PT_ProblemInstance:
            if( interfacename == "prmplanning")
                return InterfaceBasePtr(new PRMProblem(penv));
            break;
        default:
            break;
/////

in the definition and the in the python scripts I do the following
#create problem instances
    probs = orEnv.CreateProblem('PRMPlanning')
    orEnv.LoadProblem(probs,'BarrettWAM')



but this does not seem to work anymore, I get the following error,

xmlreaders.h:1515] xml readers failed to create instance of type sensor:ROSLaser2D
[Robot.cpp:2053] robot BarrettWAM has a manipulator with no name, setting to manip0
[xmlreaders.h:2110] <armjoints> for <manipulator> tag is not used anymore

[plugindatabase.h:359] Failed to create name PRMPlanning, interface probleminstance

Traceback (most recent call last):
  File "goalsetprm.py", line 38, in <module>
    orEnv.LoadProblem(probs,'BarrettWAM')
openravepy.openravepy_ext.openrave_exception: openrave (Failed): [int PyEnvironmentBase::LoadProblem(PyProblemInstancePtr, const std::string&):2745]: invalid pointer
terminate called after throwing an instance of 'OpenRAVE::openrave_exception'
Aborted
makokal@nyumbanilabs:~/IntelPR/bokal/branches/examples/python$


This is despite the fact that I get the following on running `openrave --list-plugins`
planner: 8
  BasicRRT - /usr/local/share/openrave/plugins/librplanners.so
  BiRRT - /usr/local/share/openrave/plugins/librplanners.so
  ExplorationRRT - /usr/local/share/openrave/plugins/librplanners.so
  GoalSetPRM - /usr/local/share/openrave/plugins/libopenprm.so
  GraspGradient - /usr/local/share/openrave/plugins/librplanners.so
  Grasper - /usr/local/share/openrave/plugins/libgrasper.so
  RA* - /usr/local/share/openrave/plugins/librplanners.so
  shortcut_linear - /usr/local/share/openrave/plugins/librplanners.so
robot: 2
  CollisionMapRobot - /usr/local/share/openrave/plugins/libbaserobots.so
  GenericRobot - /usr/local/share/openrave/plugins/libbaserobots.so
sensorsystem: 0
controller: 3
  IdealController - /usr/local/share/openrave/plugins/libbasecontrollers.so
  RedirectController - /usr/local/share/openrave/plugins/libbasecontrollers.so
  odevelocity - /usr/local/share/openrave/plugins/liboderave.so
probleminstance: 10
  BaseManipulation - /usr/local/share/openrave/plugins/librmanipulation.so
  DualManipulation - /usr/local/share/openrave/plugins/libdualmanipulation.so
  Grasper - /usr/local/share/openrave/plugins/libgrasper.so
  Logging - /usr/local/share/openrave/plugins/liblogging.so
  PRMProblem - /usr/local/share/openrave/plugins/libopenprm.so
  TaskCaging - /usr/local/share/openrave/plugins/librmanipulation.so
  TaskManipulation - /usr/local/share/openrave/plugins/librmanipulation.so
  VisualFeedback - /usr/local/share/openrave/plugins/librmanipulation.so
  ikfast - /usr/local/share/openrave/plugins/libikfastsolvers.so
  textserver - /usr/local/share/openrave/plugins/libtextserver.so

....

--
Viele Gruss/Best Regards,
Billy Okal
Jacobs University Bremen
#5383, MA 333
-------------------------------------------------------------------------------------------------------
"sure vi is user friendly, its just particular about who to be friends with"

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|

Re: loading problem instance from plugins problem

Okal Billy

Still havent found a soln yet


On 8 September 2010 20:22, Billy Okal <[hidden email]> wrote:
Dear Openravers,

I used to load my problem instances smoothly nut having the following simple code

//////
case OpenRAVE::PT_Planner:
            if( interfacename == "goalsetprm")
                   return InterfaceBasePtr(new GoalSetPRM(penv));
            //else if( interfacename == "goalsetprmext")
            //    return InterfaceBasePtr(new GoalSetPRMExt(penv));
            break;
           
        case OpenRAVE::PT_ProblemInstance:
            if( interfacename == "prmplanning")
                return InterfaceBasePtr(new PRMProblem(penv));
            break;
        default:
            break;
/////

in the definition and the in the python scripts I do the following
#create problem instances
    probs = orEnv.CreateProblem('PRMPlanning')
    orEnv.LoadProblem(probs,'BarrettWAM')



but this does not seem to work anymore, I get the following error,

xmlreaders.h:1515] xml readers failed to create instance of type sensor:ROSLaser2D
[Robot.cpp:2053] robot BarrettWAM has a manipulator with no name, setting to manip0
[xmlreaders.h:2110] <armjoints> for <manipulator> tag is not used anymore

[plugindatabase.h:359] Failed to create name PRMPlanning, interface probleminstance

Traceback (most recent call last):
  File "goalsetprm.py", line 38, in <module>
    orEnv.LoadProblem(probs,'BarrettWAM')
openravepy.openravepy_ext.openrave_exception: openrave (Failed): [int PyEnvironmentBase::LoadProblem(PyProblemInstancePtr, const std::string&):2745]: invalid pointer
terminate called after throwing an instance of 'OpenRAVE::openrave_exception'
Aborted
makokal@nyumbanilabs:~/IntelPR/bokal/branches/examples/python$


This is despite the fact that I get the following on running `openrave --list-plugins`
planner: 8
  BasicRRT - /usr/local/share/openrave/plugins/librplanners.so
  BiRRT - /usr/local/share/openrave/plugins/librplanners.so
  ExplorationRRT - /usr/local/share/openrave/plugins/librplanners.so
  GoalSetPRM - /usr/local/share/openrave/plugins/libopenprm.so
  GraspGradient - /usr/local/share/openrave/plugins/librplanners.so
  Grasper - /usr/local/share/openrave/plugins/libgrasper.so
  RA* - /usr/local/share/openrave/plugins/librplanners.so
  shortcut_linear - /usr/local/share/openrave/plugins/librplanners.so
robot: 2
  CollisionMapRobot - /usr/local/share/openrave/plugins/libbaserobots.so
  GenericRobot - /usr/local/share/openrave/plugins/libbaserobots.so
sensorsystem: 0
controller: 3
  IdealController - /usr/local/share/openrave/plugins/libbasecontrollers.so
  RedirectController - /usr/local/share/openrave/plugins/libbasecontrollers.so
  odevelocity - /usr/local/share/openrave/plugins/liboderave.so
probleminstance: 10
  BaseManipulation - /usr/local/share/openrave/plugins/librmanipulation.so
  DualManipulation - /usr/local/share/openrave/plugins/libdualmanipulation.so
  Grasper - /usr/local/share/openrave/plugins/libgrasper.so
  Logging - /usr/local/share/openrave/plugins/liblogging.so
  PRMProblem - /usr/local/share/openrave/plugins/libopenprm.so
  TaskCaging - /usr/local/share/openrave/plugins/librmanipulation.so
  TaskManipulation - /usr/local/share/openrave/plugins/librmanipulation.so
  VisualFeedback - /usr/local/share/openrave/plugins/librmanipulation.so
  ikfast - /usr/local/share/openrave/plugins/libikfastsolvers.so
  textserver - /usr/local/share/openrave/plugins/libtextserver.so

....

--
Viele Gruss/Best Regards,
Billy Okal
Jacobs University Bremen
#5383, MA 333
-------------------------------------------------------------------------------------------------------
"sure vi is user friendly, its just particular about who to be friends with"



--
Viele Gruss/Best Regards,
Billy Okal
Jacobs University Bremen
#5383, MA 333
-------------------------------------------------------------------------------------------------------
"sure vi is user friendly, its just particular about who to be friends with"

------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|

Re: loading problem instance from plugins problem

Rosen Diankov
Administrator
hi billy,

put a print statement in the case function and make sure the
createinterface plugin function is getting called with the correct
parameters.

rosen,

2010/9/10 Billy Okal <[hidden email]>:

>
> Still havent found a soln yet
>
> On 8 September 2010 20:22, Billy Okal <[hidden email]> wrote:
>>
>> Dear Openravers,
>>
>> I used to load my problem instances smoothly nut having the following
>> simple code
>>
>> //////
>> case OpenRAVE::PT_Planner:
>>             if( interfacename == "goalsetprm")
>>                    return InterfaceBasePtr(new GoalSetPRM(penv));
>>             //else if( interfacename == "goalsetprmext")
>>             //    return InterfaceBasePtr(new GoalSetPRMExt(penv));
>>             break;
>>
>>         case OpenRAVE::PT_ProblemInstance:
>>             if( interfacename == "prmplanning")
>>                 return InterfaceBasePtr(new PRMProblem(penv));
>>             break;
>>         default:
>>             break;
>> /////
>>
>> in the definition and the in the python scripts I do the following
>> #create problem instances
>>     probs = orEnv.CreateProblem('PRMPlanning')
>>     orEnv.LoadProblem(probs,'BarrettWAM')
>>
>>
>>
>> but this does not seem to work anymore, I get the following error,
>>
>> xmlreaders.h:1515] xml readers failed to create instance of type
>> sensor:ROSLaser2D
>> [Robot.cpp:2053] robot BarrettWAM has a manipulator with no name, setting
>> to manip0
>> [xmlreaders.h:2110] <armjoints> for <manipulator> tag is not used anymore
>>
>> [plugindatabase.h:359] Failed to create name PRMPlanning, interface
>> probleminstance
>>
>> Traceback (most recent call last):
>>   File "goalsetprm.py", line 38, in <module>
>>     orEnv.LoadProblem(probs,'BarrettWAM')
>> openravepy.openravepy_ext.openrave_exception: openrave (Failed): [int
>> PyEnvironmentBase::LoadProblem(PyProblemInstancePtr, const
>> std::string&):2745]: invalid pointer
>> terminate called after throwing an instance of
>> 'OpenRAVE::openrave_exception'
>> Aborted
>> makokal@nyumbanilabs:~/IntelPR/bokal/branches/examples/python$
>>
>>
>> This is despite the fact that I get the following on running `openrave
>> --list-plugins`
>> planner: 8
>>   BasicRRT - /usr/local/share/openrave/plugins/librplanners.so
>>   BiRRT - /usr/local/share/openrave/plugins/librplanners.so
>>   ExplorationRRT - /usr/local/share/openrave/plugins/librplanners.so
>>   GoalSetPRM - /usr/local/share/openrave/plugins/libopenprm.so
>>   GraspGradient - /usr/local/share/openrave/plugins/librplanners.so
>>   Grasper - /usr/local/share/openrave/plugins/libgrasper.so
>>   RA* - /usr/local/share/openrave/plugins/librplanners.so
>>   shortcut_linear - /usr/local/share/openrave/plugins/librplanners.so
>> robot: 2
>>   CollisionMapRobot - /usr/local/share/openrave/plugins/libbaserobots.so
>>   GenericRobot - /usr/local/share/openrave/plugins/libbaserobots.so
>> sensorsystem: 0
>> controller: 3
>>   IdealController -
>> /usr/local/share/openrave/plugins/libbasecontrollers.so
>>   RedirectController -
>> /usr/local/share/openrave/plugins/libbasecontrollers.so
>>   odevelocity - /usr/local/share/openrave/plugins/liboderave.so
>> probleminstance: 10
>>   BaseManipulation - /usr/local/share/openrave/plugins/librmanipulation.so
>>   DualManipulation -
>> /usr/local/share/openrave/plugins/libdualmanipulation.so
>>   Grasper - /usr/local/share/openrave/plugins/libgrasper.so
>>   Logging - /usr/local/share/openrave/plugins/liblogging.so
>>   PRMProblem - /usr/local/share/openrave/plugins/libopenprm.so
>>   TaskCaging - /usr/local/share/openrave/plugins/librmanipulation.so
>>   TaskManipulation - /usr/local/share/openrave/plugins/librmanipulation.so
>>   VisualFeedback - /usr/local/share/openrave/plugins/librmanipulation.so
>>   ikfast - /usr/local/share/openrave/plugins/libikfastsolvers.so
>>   textserver - /usr/local/share/openrave/plugins/libtextserver.so
>>
>> ....
>>
>> --
>> Viele Gruss/Best Regards,
>> Billy Okal
>> Jacobs University Bremen
>> #5383, MA 333
>>
>> -------------------------------------------------------------------------------------------------------
>> "sure vi is user friendly, its just particular about who to be friends
>> with"
>
>
>
> --
> Viele Gruss/Best Regards,
> Billy Okal
> Jacobs University Bremen
> #5383, MA 333
> -------------------------------------------------------------------------------------------------------
> "sure vi is user friendly, its just particular about who to be friends with"
>
> ------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> Openrave-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/openrave-users
>
>

------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users