#!/local/bin/perl
$pitchmod = shift @ARGV;
$yawmod = shift @ARGV;
while( <> ) {
if( ($pitch, $yaw) = /<position pitch="([\d.-]+)".*yaw="([\d.-]+)"/ ) {
$newpitch = $pitch + $pitchmod;
$newyaw = $yaw + $yawmod;
s/pitch="$pitch"/pitch="$newpitch"/;
s/yaw="$yaw"/yaw="$newyaw"/;
}
print $_;
}
fma38 wrote:Is it not the problem we identified some days ago, with utf-8 characters in the header fields?
<?xml version="1.0" encoding="utf-8"?>
<papywizard version="b">
<header>
<general>
<title>
Here goes the title
</title>
<gps>
Here goes the location
</gps>
<comment>
Generated by Papywizard 2.1.17
</comment>
</general>
<shooting mode="mosaic">
<headOrientation>
up
</headOrientation>
<cameraOrientation>
portrait
</cameraOrientation>
<stabilizationDelay>
0.5
</stabilizationDelay>
<startTime>
2010-05-23_16h42m17s
</startTime>
<endTime>
2010-05-23_17h04m56s
</endTime>
</shooting>
<camera>
<timeValue>
0.9
</timeValue>
<bracketing nbPicts="1"/>
<sensor coef="1.5" ratio="3:2"/>
</camera>
<lens type="rectilinear">
<focal>
150.0
</focal>
</lens>
<mosaic>
<nbPicts pitch="10" yaw="10"/>
<overlap minimum="0.25" pitch="0.25" yaw="0.25"/>
</mosaic>
</header>
<?xml version="1.0" encoding="utf-8"?>
<papywizard version="c">
<header>
<general>
<title>
Here goes the title
</title>
<gps>
Here goes the location
</gps>
<comment>
Generated by Papywizard 2.1.20
</comment>
</general>
<shooting mode="mosaic">
<headOrientation>
up
</headOrientation>
<cameraOrientation>
portrait
</cameraOrientation>
<stabilizationDelay>
0.5
</stabilizationDelay>
<counter>
002
</counter>
<startTime>
2010-06-24_19h32m25s
</startTime>
<endTime>
2010-06-24_19h41m49s
</endTime>
</shooting>
<camera>
<timeValue>
1.0
</timeValue>
<bracketing nbPicts="1"/>
<sensor coef="1.5" ratio="3:2"/>
</camera>
<lens type="rectilinear">
<focal>
150.0
</focal>
</lens>
<mosaic>
<nbPicts pitch="10" yaw="10"/>
<overlap minimum="0.25" pitch="0.25" yaw="0.25"/>
</mosaic>
</header>
mediavets wrote:The problem the other day related to PW custom preset XML files as I recall.
fma38 wrote:Yes, I think rootsh is the new official mechanism. Someone on the forum has used it some weeks ago...
If it works fine, you can update the wiki.
christine wrote:Hi Frédéric,
As I'm setting this up for others to use I thought the presets would be easier for them. I can try it in Mosaic mode,
but I would like to have confidence in the format of the presets and the Panogear and at the moment I'm failing to understand what I did wrong.
Without having any idea what I'm talking aboutCould this be anything to do with the alternate drive (?) being set at 7 degrees as in the default which I haven't changed? I tried some tests just taking the first two rows as examples:
If row1 in the code above is 20 degrees and I set row2 to either 15, 14 or 13 degrees, the camera continues to move up above the shooting pattern as shown in the image as soon as it tries to go to the first position in row2
If row1 is 20 degrees and I set row2 to 12 degrees or less, everything works fine.
In other words, the smallest increment I am able to set is without an error is 8 degrees. Is it something to do with the smaller camera movements when it's set smaller than 8 degrees? Papywizard version is 2.1.20
<?xml version="1.0" encoding="utf-8" ?>
<papywizard>
<preset name="0_40_fl200TRIAL">
<tooltip>
focal length: 200mm
horizontal FOV: 0 to 40
vertical FOV: 20 to -20
initial position 0,0
planar projection
</tooltip>
<shoot>
<!-- row 1 -->
<pict yaw="0." pitch="20."/>
<pict yaw="10." pitch="20."/>
<pict yaw="20." pitch="20."/>
<pict yaw="30." pitch="20."/>
<pict yaw="40." pitch="20."/>
<!-- row 2 -->
<pict yaw="40." pitch="15."/>
<pict yaw="30." pitch="15."/>
<pict yaw="20." pitch="15."/>
<pict yaw="10." pitch="15."/>
<pict yaw="0." pitch="15."/>
<!-- row 3 -->
<pict yaw="0." pitch="10."/>
<pict yaw="10." pitch="10."/>
<pict yaw="20." pitch="10."/>
<pict yaw="30." pitch="10."/>
<pict yaw="40." pitch="10."/>
<!-- row 4 -->
<pict yaw="40." pitch="5."/>
<pict yaw="30." pitch="5."/>
<pict yaw="20." pitch="5."/>
<pict yaw="10." pitch="5."/>
<pict yaw="0." pitch="5."/>
<!-- row 5 -->
<pict yaw="0." pitch="0."/>
<pict yaw="10." pitch="0."/>
<pict yaw="20." pitch="0."/>
<pict yaw="30." pitch="0."/>
<pict yaw="40." pitch="0."/>
</shoot>
</preset>
</papywizard>
Users browsing this forum: No registered users and 1 guest