paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Re: new script on Wiki


From: David Conger
Subject: Re: [Paparazzi-devel] Re: new script on Wiki
Date: Fri, 24 Sep 2010 14:02:17 -0700

Ah, cool, I thought about this some and realize a single line command is better 
than what I put on the Wiki. The simpler the better. I work all day every day 
in the shell so I am ok with doing my own symlinks. So let's use the simpler 
way (yours). 
-David
On Sep 24, 2010, at 12:35 PM, Felix Ruess wrote:

> Hi,
> 
> ok, I corrected the ln command on the wiki to link the directory
> sudo ln -s $PAPARAZZI_SRC/conf/simulator/flightgear/
> /usr/share/games/FlightGear/Models/Aircraft/paparazzi
> 
> Notice there is no * after the paparazzi flightgear directory. This
> did not work since the shell expanded to all files in that dir.
> 
> Cheers, Felix
> 
> On Fri, Sep 24, 2010 at 8:10 PM, David Conger <address@hidden> wrote:
>> Hello,
>> 
>> Correct, I did a copy/paste of the orig. code and it did not work. By doing
>> a symlink of just the files it worked perfectly.
>> 
>> My results of the Wiki command given orig:
>> sudo ln -s -f /home/mavlab/ppz2svn/conf/simulator/flightgear/*
>> /usr/share/games/FlightGear/Models/Aircraft/paparazzi/
>> [sudo] password for dconger-linux:
>> ln: target `/usr/share/games/FlightGear/Models/Aircraft/paparazzi/' is not a
>> directory: No such file or directory
>> 
>> if I create the paparazzi directory I get:
>> address@hidden:~/paparazzi3$ ls -l
>> /usr/share/games/FlightGear/Models/Aircraft/paparazzi/
>> total 0
>> lrwxrwxrwx 1 root root 48 2010-09-24 11:07 * ->
>> /home/mavlab/ppz2svn/conf/simulator/flightgear/*
>> I have never seen a link like that to "*" but I was willing to try:
>> fgfs --fdm=null --native-gui=socket,in,30,,5501,udp
>> --prop:/sim/model/path=Models/Aircraft/paparazzi/mikrokopter.xml
>> Failed to load xml: Failed to open file
>>  at /usr/share/games/FlightGear/Models/Aircraft/paparazzi/mikrokopter.xml
>> Failed to load model: Failed to open file
>>  at /usr/share/games/FlightGear/Models/Aircraft/paparazzi/mikrokopter.xml
>> 
>> So, it was just easier for me to understand and use the code I put in the
>> Wiki after :)
>> 
>> Best regards,
>> David Conger
>> 
>> On Sep 24, 2010, at 09:20 AM, Felix Ruess <address@hidden> wrote:
>> 
>> Hi,
>> 
>> I just saw that David put a short script on the wiki page
>> http://paparazzi.enac.fr/wiki/BoozSimulator
>> There every file is linked seperately.
>> David, did just linking the dir as described earlier not work for you?
>> 
>> I just did a
>> ln -s $PAPARAZZI_HOME/conf/simulator/flightgear/
>> /usr/share/games/flightgear/Models/Aircraft/paparazzi
>> and then you use the models, e.g. Models/Aircraft/paparazzi/mikrokopterxml
>> 
>> Any reason to have the models directly under Models/Aircraft and not
>> to link the whole directory?
>> 
>> Cheers, Felix
>> 
>> On Fri, Sep 24, 2010 at 5:38 PM, tomm pouce <address@hidden> wrote:
>>> Hey,
>>> 
>>> thanks to you, it now works. I've had to do one last modification, the
>>> path
>>> to the mikrokopter.xmlfile was off when I start flightgear. I use:
>>> 
>>> path=Models/Aircraft/mikrokopter.xml
>>> 
>>> instead of :
>>> 
>>> path=Models/Aircraft/paparazzi/mikrokopter.xml
>>> 
>>> Thanks again!
>>> 
>>> Tomm
>>> 
>>> 2010/9/24 Felix Ruess <address@hidden>
>>>> 
>>>> Hi Tomm,
>>>> 
>>>> it seems your paparazzi path is not set (hence the null in the error
>>>> message "Could not open file:
>>>> (null)/conf/simulator/jsbsim/aircraft/BOOZ2_A1.xml")
>>>> See http://paparazzi.enac.fr/wiki/Installation#env_Variables
>>>> 
>>>> You can add these lines to your .bashrc file so it will be exported
>>>> automatically next time.
>>>> export PAPARAZZI_HOME=~/paparazzi3
>>>> export PAPARAZZI_SRC=~/paparazzi3
>>>> You might have to adapt that to point to your paparazzi path.
>>>> 
>>>> Then run it from a terminal as you did.
>>>> 
>>>> Cheers, Felix
>>>> 
>>>> On Fri, Sep 24, 2010 at 1:13 AM, tomm pouce <address@hidden> wrote:
>>>>> thanks for the help Felix!
>>>>> 
>>>>> I've followed to the letter the page
>>>>> http://paparazzi.enac.fr/wiki/BoozSimulator, so I got rid of the Ubuntu
>>>>> package and reinstalled it from CVS. I have a problem when starting the
>>>>> sim.
>>>>> Where should I enter the commands? Within the Paparazzi Center or in a
>>>>> new
>>>>> terminal?
>>>>> In the paparazzi center in a running agent line, I get the following
>>>>> message
>>>>> in the console:
>>>>> ************************************************************
>>>>> Run 'LD_LIBRARY_PATH=/opt/jsbsim/lib ./var/BOOZ2_A1/sim/simsitl'
>>>>> exec: 1: LD_LIBRARY_PATH=/opt/jsbsim/lib: not found
>>>>> ************************************************************
>>>>> 
>>>>> In a new terminal I get:
>>>>> ************************************************************
>>>>> address@hidden:~/paparazzi3$ LD_LIBRARY_PATH=/opt/jsbsim/lib
>>>>> ./var/BOOZ2_A1/sim/simsitl
>>>>> Broadcasting on network 127.255.255.255, port 2010
>>>>>      JSBSim Flight Dynamics Model v1.0 Sep 23 2010 00:00:31
>>>>>             [JSBSim-ML v2.0]
>>>>> JSBSim startup beginning ...
>>>>> Could not open file: (null)/conf/simulator/jsbsim/aircraft/BOOZ2_A1.xml
>>>>>   JSBSim failed to open the configuration file:
>>>>> (null)/conf/simulator/jsbsim/aircraft/BOOZ2_A1.xml
>>>>> address@hidden:~/paparazzi3$
>>>>> ************************************************************
>>>>> 
>>>>> Any advice would be welcome!
>>>>> 
>>>>> Tomm
>>>>> 
>>>>> 2010/9/24 Felix Ruess <address@hidden>
>>>>>> 
>>>>>> Hi Tomm,
>>>>>> 
>>>>>> Are you using JSBSim from cvs or the experimental paparazzi-jsbsim
>>>>>> package?
>>>>>> They install to different paths (at least if you follow the wiki and
>>>>>> install from cvs to /opt/jsbsim).
>>>>>> The fdm_nps subsystem for the booz sim currently looks for JSBsim
>>>>>> under /opt/jsbsim so you should be fine if you followed the wiki page.
>>>>>> 
>>>>>> I guess we could change that soon and start using the paparazzi-jsbsim
>>>>>> package.
>>>>>> 
>>>>>> Cheers, Felix
>>>>>> 
>>>>>> P.S. or what was you problem?
>>>>>> 
>>>>>> On Thu, Sep 23, 2010 at 11:53 PM, tomm pouce <address@hidden>
>>>>>> wrote:
>>>>>>> my pleasure, glad I could help!
>>>>>>> Haven't been able to start a simulation using JSBSim yet, but I'll
>>>>>>> keep
>>>>>>> working.
>>>>>>> 
>>>>>>> 2010/9/23 Felix Ruess <address@hidden>
>>>>>>>> 
>>>>>>>> Hi Tomm,
>>>>>>>> 
>>>>>>>> thanks for that!
>>>>>>>> I fixed it for now and sent Martin (he did wrote that quicker
>>>>>>>> version)
>>>>>>>> an email about that.
>>>>>>>> 
>>>>>>>> Cheers, Felix
>>>>>>>> 
>>>>>>>> On Thu, Sep 23, 2010 at 11:34 PM, tomm pouce <address@hidden>
>>>>>>>> wrote:
>>>>>>>>> Hey all,
>>>>>>>>> 
>>>>>>>>> I looked into the construction of FLOAT_QUAT_VMULT in the
>>>>>>>>> pprz_algebra_float.h header.
>>>>>>>>> Could the FLOAT_QUAT_VMULT_QUICKER be renamed FLOAT_QUAT_VMULT?
>>>>>>>>> 
>>>>>>>>> It solved the problem described in the first email.
>>>>>>>>> 
>>>>>>>>> Here are the few lines related to this function:
>>>>>>>>> #ifdef ALGEBRA_FLOAT_USE_SLOW_FUNCTIONS
>>>>>>>>> #define FLOAT_QUAT_VMULT(v_out, q, v_in) {                \
>>>>>>>>>   ...}
>>>>>>>>> #else
>>>>>>>>> #define FLOAT_QUAT_VMULT_QUICKER(v_out, q, v_in) {            \
>>>>>>>>>   ...}
>>>>>>>>> #endif
>>>>>>>>> 
>>>>>>>>> Regards,
>>>>>>>>> 
>>>>>>>>> Tomm
>>>>>>>>> 
>>>>>>>>> 2010/9/23 tomm pouce <address@hidden>
>>>>>>>>>> 
>>>>>>>>>> Hi all,
>>>>>>>>>> 
>>>>>>>>>> After playing a bit with the basic simulator, I'm now trying to
>>>>>>>>>> do a
>>>>>>>>>> simulation using JSBSim, following as strictly as possible the
>>>>>>>>>> BoozSimulator
>>>>>>>>>> article in the wiki. I've met the following problem during the
>>>>>>>>>> compilation
>>>>>>>>>> of the vehicle.
>>>>>>>>>> Here's the end of the log:
>>>>>>>>>> **************************************************************
>>>>>>>>>> In file included from
>>>>>>>>>> /opt/jsbsim/include/JSBSim/input_output/FGXMLParse.h:37,
>>>>>>>>>>                  from
>>>>>>>>>> /opt/jsbsim/include/JSBSim/input_output/FGXMLFileRead.h:38,
>>>>>>>>>>                  from
>>>>>>>>>> /opt/jsbsim/include/JSBSim/models/FGOutput.h:46,
>>>>>>>>>>                  from /opt/jsbsim/include/JSBSim/FGFDMExec.h:45,
>>>>>>>>>>                  from
>>>>>>>>>> /home/tommpouce/paparazzi3/sw/simulator/nps/nps_fdm_jsbsim.c:1:
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:249: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘name’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:249: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘atts’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:258: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘name’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:273: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘s’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:273: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘length’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:288: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘target’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:288: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘data’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:301: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘message’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:301: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘line’
>>>>>>>>>> /opt/jsbsim/include/JSBSim/simgear/xml/easyxml.hxx:301: warning:
>>>>>>>>>> unused
>>>>>>>>>> parameter ‘column’
>>>>>>>>>> CC
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> /home/tommpouce/paparazzi3/var/BOOZ2_A1/sim//home/tommpouce/paparazzi3/sw/simulator/nps/nps_random.o
>>>>>>>>>> CC
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> /home/tommpouce/paparazzi3/var/BOOZ2_A1/sim//home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensors.o
>>>>>>>>>> CC
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> /home/tommpouce/paparazzi3/var/BOOZ2_A1/sim//home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensors_utils.o
>>>>>>>>>> CC
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> /home/tommpouce/paparazzi3/var/BOOZ2_A1/sim//home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensor_gyro.o
>>>>>>>>>> CC
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> /home/tommpouce/paparazzi3/var/BOOZ2_A1/sim//home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensor_accel.o
>>>>>>>>>> /home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensor_accel.c:
>>>>>>>>>> In
>>>>>>>>>> function ‘void nps_sensor_accel_run_step(NpsSensorAccel*,
>>>>>>>>>> double,
>>>>>>>>>> DoubleRMat*)’:
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> /home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensor_accel.c:34:
>>>>>>>>>> error:
>>>>>>>>>> ‘FLOAT_QUAT_VMULT’ was not declared in this scope
>>>>>>>>>> make[1]: ***
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> [/home/tommpouce/paparazzi3/var/BOOZ2_A1/sim//home/tommpouce/paparazzi3/sw/simulator/nps/nps_sensor_accel.o]
>>>>>>>>>> Erreur 1
>>>>>>>>>> make: *** [sim] Erreur 2
>>>>>>>>>> **************************************************************
>>>>>>>>>> 
>>>>>>>>>> Can anyone help? My (long-gone) programming courses didn't go
>>>>>>>>>> that
>>>>>>>>>> far,
>>>>>>>>>> and I'm not going to touch any code for now...
>>>>>>>>>> 
>>>>>>>>>> Thanks!
>>>>>>>>>> 
>>>>>>>>>> Tomm
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> Paparazzi-devel mailing list
>>>>>>>>> address@hidden
>>>>>>>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> Paparazzi-devel mailing list
>>>>>>>> address@hidden
>>>>>>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> Paparazzi-devel mailing list
>>>>>>> address@hidden
>>>>>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> _______________________________________________
>>>>>> Paparazzi-devel mailing list
>>>>>> address@hidden
>>>>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>>>> 
>>>>> 
>>>>> _______________________________________________
>>>>> Paparazzi-devel mailing list
>>>>> address@hidden
>>>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>>>> 
>>>>> 
>>>> 
>>>> _______________________________________________
>>>> Paparazzi-devel mailing list
>>>> address@hidden
>>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>> 
>>> 
>>> _______________________________________________
>>> Paparazzi-devel mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>>> 
>>> 
>> 
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> 
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> 
>> 
> 
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]