GithubHelp home page GithubHelp logo

gdellapenna / upmurphi Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 4.0 369 KB

UPMurphi planner for linear and nonlinear continuous PDDL+ models with processes and events

License: Other

C++ 80.88% Makefile 0.27% C 12.85% Lex 0.46% Yacc 5.54%
model-checking pddl planning-algorithms universal-planning

upmurphi's People

Contributors

fabiomercorio avatar gdellapenna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

upmurphi's Issues

Segfault Across All Examples

Hello!
Thank you for making this planner available. I was testing it out on the example problems and all of them failed with Segmentation Fault during the "Compiling Model" step.

Below is the stack trace:
`Start UPMurphi translation...

----- CONFIG FILE -----
PDDL Domain File: /root/UPMurphi/ex/generator_linear/genlinear.pddl
PDDL Problem File: /root/UPMurphi/ex/generator_linear/genproblinear.pddl
The output model will be written on file: /root/UPMurphi/ex/generator_linear/genlinear.m
The output external function file will be written on file: /root/UPMurphi/ex/generator_linear/genlinear.h
----- DOMAIN SETTINGS -----
Time discretisation: 1.000000
Real number: (Integer): 5.000000 digits for the integer part
Real number: (Fractional) 2.000000 digits for the fractional part

...Translation completed

Errors: 0, warnings: 0
PDDL compilation successful, no errors
UPMurphi model generated in file /root/UPMurphi/ex/generator_linear/genlinear.m
Compiling model...
Segmentation fault
`
Thanks!

dellapena das pena

help im failing

lex.yy.cc: In member function ‘virtual int yyFlexLexer::yylex()’:
lex.yy.cc:1166:18: error: no match for ‘operator=’ (operand types are ‘std::istream’ {aka ‘std::basic_istream’} and ‘std::istream*’ {aka ‘std::basic_istream’})
1166 | yyin = & std::cin;
| ^~~
In file included from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/istream:625:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]’
625 | operator=(basic_istream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/istream:625:33: note: no known conversion for argument 1 from ‘std::istream
’ {aka ‘std::basic_istream’} to ‘std::basic_istream&&’
625 | operator=(basic_istream&& __rhs)
| ~~~~~~~~~~~~~~~~^~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc:1169:19: error: no match for ‘operator=’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘std::ostream
’ {aka ‘std::basic_ostream’})
1169 | yyout = & std::cout;
| ^~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/ostream:408:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]’
408 | operator=(basic_ostream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/ostream:408:33: note: no known conversion for argument 1 from ‘std::ostream
’ {aka ‘std::basic_ostream’} to ‘std::basic_ostream&&’
408 | operator=(basic_ostream&& __rhs)
| ~~~~~~~~~~~~~~~~^~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc:1818:46: error: cannot convert ‘std::istream’ {aka ‘std::basic_istream’} to ‘std::istream
’ {aka ‘std::basic_istream’} in assignment
1818 | YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
| ^~~~
| |
| std::istream {aka std::basic_istream}
lex.yy.cc: In constructor ‘yyFlexLexer::yyFlexLexer(std::istream
, std::ostream*)’:
lex.yy.cc:1929:75: error: ‘std::basic_istream<_CharT, _Traits>::basic_istream() [with _CharT = char; _Traits = std::char_traits]’ is protected within this context
1929 | yyFlexLexer::yyFlexLexer( std::istream* arg_yyin, std::ostream* arg_yyout )
| ^
In file included from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/istream:606:7: note: declared protected here
606 | basic_istream()
| ^~~~~~~~~~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc:1929:75: error: ‘std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::char_traits]’ is protected within this context
1929 | yyFlexLexer::yyFlexLexer( std::istream* arg_yyin, std::ostream* arg_yyout )
| ^
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/ostream:390:7: note: declared protected here
390 | basic_ostream()
| ^~~~~~~~~~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc:1931:9: error: no match for ‘operator=’ (operand types are ‘std::istream’ {aka ‘std::basic_istream’} and ‘std::istream*’ {aka ‘std::basic_istream’})
1931 | yyin = arg_yyin;
| ^~~~~~~~
In file included from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/istream:625:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]’
625 | operator=(basic_istream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/istream:625:33: note: no known conversion for argument 1 from ‘std::istream
’ {aka ‘std::basic_istream’} to ‘std::basic_istream&&’
625 | operator=(basic_istream&& __rhs)
| ~~~~~~~~~~~~~~~~^~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc:1932:10: error: no match for ‘operator=’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘std::ostream
’ {aka ‘std::basic_ostream’})
1932 | yyout = arg_yyout;
| ^~~~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/ostream:408:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]’
408 | operator=(basic_ostream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/ostream:408:33: note: no known conversion for argument 1 from ‘std::ostream
’ {aka ‘std::basic_ostream’} to ‘std::basic_ostream&&’
408 | operator=(basic_ostream&& __rhs)
| ~~~~~~~~~~~~~~~~^~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc: In member function ‘virtual void yyFlexLexer::switch_streams(std::istream
, std::ostream*)’:
lex.yy.cc:1978:11: error: no match for ‘operator=’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘std::ostream*’ {aka ‘std::basic_ostream’})
1978 | yyout = new_out;
| ^~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/ostream:408:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]’
408 | operator=(basic_ostream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/ostream:408:33: note: no known conversion for argument 1 from ‘std::ostream
’ {aka ‘std::basic_ostream’} to ‘std::basic_ostream&&’
408 | operator=(basic_ostream&& __rhs)
| ~~~~~~~~~~~~~~~~^~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc: In member function ‘virtual int yyFlexLexer::LexerInput(char
, int)’:
lex.yy.cc:1987:11: error: base operand of ‘->’ has non-pointer type ‘std::istream’ {aka ‘std::basic_istream’}
1987 | if ( yyin->eof() || yyin->fail() )
| ^~
lex.yy.cc:1987:26: error: base operand of ‘->’ has non-pointer type ‘std::istream’ {aka ‘std::basic_istream’}
1987 | if ( yyin->eof() || yyin->fail() )
| ^~
lex.yy.cc:1991:6: error: base operand of ‘->’ has non-pointer type ‘std::istream’ {aka ‘std::basic_istream’}
1991 | yyin->get( buf[0] );
| ^~
lex.yy.cc:1993:11: error: base operand of ‘->’ has non-pointer type ‘std::istream’ {aka ‘std::basic_istream’}
1993 | if ( yyin->eof() )
| ^~
lex.yy.cc:1996:11: error: base operand of ‘->’ has non-pointer type ‘std::istream’ {aka ‘std::basic_istream’}
1996 | if ( yyin->bad() )
| ^~
lex.yy.cc: In member function ‘virtual void yyFlexLexer::LexerOutput(const char*, int)’:
lex.yy.cc:2013:14: error: base operand of ‘->’ has non-pointer type ‘std::ostream’ {aka ‘std::basic_ostream’}
2013 | (void) yyout->write( buf, size );
| ^~
lex.yy.cc: In member function ‘virtual void yyFlexLexer::yyrestart(std::istream*)’:
lex.yy.cc:2333:37: error: cannot convert ‘std::istream*’ {aka ‘std::basic_istream’} to ‘std::istream&’ {aka ‘std::basic_istream&’}
2333 | yy_init_buffer( YY_CURRENT_BUFFER, input_file );
| ^~~~~~~~~~
| |
| std::istream
{aka std::basic_istream}
In file included from lex.yy.cc:323,
from pddl+.yacc:1423:
/usr/include/FlexLexer.h:156:58: note: initializing argument 2 of ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state
, std::istream&)’
156 | void yy_init_buffer( yy_buffer_state* b, std::istream& s );
| ~~~~~~~~~~~~~~^
In file included from pddl+.yacc:1423:
lex.yy.cc: In member function ‘void yyFlexLexer::yy_load_buffer_state()’:
lex.yy.cc:2376:35: error: no match for ‘operator=’ (operand types are ‘std::istream’ {aka ‘std::basic_istream’} and ‘std::istream*’ {aka ‘std::basic_istream’})
2376 | yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
| ^~~~~~~~~~~~~
In file included from /usr/include/c++/9/fstream:38,
from pddl+.yacc:45:
/usr/include/c++/9/istream:625:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]’
625 | operator=(basic_istream&& __rhs)
| ^~~~~~~~
/usr/include/c++/9/istream:625:33: note: no known conversion for argument 1 from ‘std::istream
’ {aka ‘std::basic_istream’} to ‘std::basic_istream&&’
625 | operator=(basic_istream&& __rhs)
| ~~~~~~~~~~~~~~~~^~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc: In member function ‘virtual yy_buffer_state
yyFlexLexer::yy_create_buffer(std::istream*, int)’:
lex.yy.cc:2405:21: error: cannot convert ‘std::istream*’ {aka ‘std::basic_istream’} to ‘std::istream&’ {aka ‘std::basic_istream&’}
2405 | yy_init_buffer( b, file );
| ^~~~
| |
| std::istream
{aka std::basic_istream}
In file included from lex.yy.cc:323,
from pddl+.yacc:1423:
/usr/include/FlexLexer.h:156:58: note: initializing argument 2 of ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state
, std::istream&)’
156 | void yy_init_buffer( yy_buffer_state* b, std::istream& s );
| ~~~~~~~~~~~~~~^
In file included from pddl+.yacc:1423:
lex.yy.cc: At global scope:
lex.yy.cc:22:25: error: no declaration matches ‘void yyFlexLexer::yy_init_buffer(YY_BUFFER_STATE, std::istream*)’
22 | #define yyFlexLexer yyFlexLexer
| ^~~~~~~~~~~
lex.yy.cc:2433:10: note: in expansion of macro ‘yyFlexLexer’
2433 | void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, std::istream* file )
| ^~~~~~~~~~~
In file included from lex.yy.cc:323,
from pddl+.yacc:1423:
/usr/include/FlexLexer.h:156:8: note: candidate is: ‘void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)’
156 | void yy_init_buffer( yy_buffer_state* b, std::istream& s );
| ^~~~~~~~~~~~~~
In file included from pddl+.yacc:1423:
lex.yy.cc:22:25: note: ‘class yyFlexLexer’ defined here
22 | #define yyFlexLexer yyFlexLexer
| ^~~~~~~~~~~
make[1]: *** [Makefile:27: pddl+.o] Error 1
make[1]: Leaving directory '/home/chuismi/Desktop/robotica/tercero/segundocuat/planificacion/UPMurphi/src/UPMurphi_parser'
make: *** [Makefile:7: pddl2upm] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.