linux下CERTI示例Billard运行过程记录及教程


环境变量

方法从CERTI官网摘抄,对环境变量配置如下。 注意 第一个PATH重要,不然运行时,不能装载rtia


export PATH=/home/zchx/Documents/Build_CERTI/RTIA:$PATH
export CERTI_HOST=localhost
export CERTI_HOME=/home/zchx/Documents/Build_CERTI/RTIG:$CERTI_HOME 
export CERTI_FED=/home/zchx/Documents/Build_CERTI/RTIG:$CERTI_FED
export CERTI_HTTP_PROXY=""

问题:RTIA:: Reason: gethostbyname gave NULL answer for hostname

Hello, 
we know that CERTI uses the TCP protocol, 
we know that some computers are using an HTTP proxy, 
an interesting contribution has been to use this proxy to do 
wide area distributed simulations, 
but this can lead to an error. 
That is to say, I download CERTI, I run the standard configuration 
script (myCERTI_env.sh which includes CERTI_HOST=localhost), 
I launch the billard federate and it does not work. 
billard -n1 -fTest -FTest.fed 
CERTI Billard 3.3.3cvs 
with TIMESTAMP. If you want without TIMESTAMP add -e option. 
RTIA:: RTIA has thrown NetworkError exception. 
RTIA:: Reason: gethostbyname gave NULL answer for hostname <proxy> 
with error <Resource temporarily unavailable> 
or 
billard -n1 -fTest -FTest.fed 
CERTI Billard 3.3.3cvs 
with TIMESTAMP. If you want without TIMESTAMP add -e option. 
RTIA:: RTIA has thrown NetworkError exception. 
RTIA:: Reason: Proxy connection refused: HTTP/1.0 403 Forbidden 
I think that we should avoid that because this is the procedure 
that we recommend to all the beginners. 
Today the solution exists : 
export CERTI_HTTP_PROXY="" 
What happens ? 
In this simplest case, CERTI tries to use the HTTP proxy 
but it does not work or it does not agree the request. 
Why to use this proxy in the case of a standalone computer 
or in the case of a local network ? 
TCP does not imply HTTP ! 
Even why to use this proxy if we can ask for the opening 
of the good TCP port ? 
Now the poll. 
Do you prefer the introduction of a new variable when the 
usage of HTTP is wanted ? 
Do you prefer that we modify the standard configuration files ? 
Do you prefer an intermediary solution: To discover that 
the federation is working locally and to disactivate the 
HTTP proxy usage ? 
Thank you, 
Pierre 

问题:RTIG cannot find FED file

该文档只需要放在rtig能找到的地方(环境变量CERTI_HOME指定的目录下)

注意:FED文件需要放在CERTI_FED 下,同时为了保险起见,把他放在RTIG 和 Billard 目录下,就更好了。


终了:开始运行测试程序 ./billard2d -n "1" -f "fTest" -F "Test.fed"


若你和我一样同在研究CERTI HLA 网络架构,可以联系我,方式见上















评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值