This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pypilot
#7
(2017-07-02, 06:39 PM)Sailoog Wrote: Some issues:

LSM9DS0 IMU works great on boatimu.py but values with a MPU-9250 are really erratic. I have seen this before with RTIMULIb2 but after ellipsoid calibration values were right.

I have never used the lsm9ds0 imu. It should in theory work...

The 9250 is broken since I didn't backport the 9255 changes. The 9255 works great if you have one.

Quote:Folder /home/pi/.pypilot has to be created manually or you get errors on some tools when they try to create conf files.
good point, I should fix this. You are the first to test Smile
Quote:autopilot_calibration.py shows a wx window with a empty black window and some buttons. This message is repeated "connect failed to pypilot:21311". It seems to me that it is trying to connect to the signalk server so I start signalk/server.py but I get the same result. If I am not wrong running boatimu.py should run also the signalk server but same result. When clicking IMU tab returns this

The boatimu.py creates a server.

Try running signalk/client.py and maybe pass "localhost" as a parameter to once boatimu is running. You should be able to run "signalk/scope_wx.py localhost" as well for example. I need to fix the config. The idea is you have a config file that allows you to specify a default remote host for the server rather than passing it from the command line each time. I think it defaults to "pypilot" which won't resolve to anything unless you connect to the access point with the dns server on tinypilot...

Quote:error:
Code:
Traceback (most recent call last):
 File "autopilot_calibration.py", line 267, in onPaintGLBoatPlot
   self.boat_plot.display(self.fusionQPose)
 File "/home/pi/pypilot/ui/boatplot.py", line 34, in display
   self.obj = pywavefront.Wavefront('Vagabond.obj')
 File "/usr/local/lib/python2.7/dist-packages/pywavefront/__init__.py", line 53, in __init__
   ObjParser(self, self.file_name)
 File "/usr/local/lib/python2.7/dist-packages/pywavefront/__init__.py", line 75, in __init__
   self.read_file(file_name)
 File "/usr/local/lib/python2.7/dist-packages/pywavefront/parser.py", line 43, in read_file
   for line in open(file_name, 'r'):
IOError: [Errno 2] No such file or directory: 'Vagabond.obj'
The binaries files are in a separate repository "pypilot_data" I just put on github today.

github.com/pypilot/pypilot_data

Quote:It seems that the 3d object "Vagabond.obj" is not found.


I think you should check the file names on README, There are files that I have not found because it seems that you renamed them.

Yes, sorry about this. It will get better... Thank you for testing.

(2017-07-02, 07:05 PM)Sailoog Wrote: Ok I have found the data for pypilot in a separate repo and added vagabond.obj and now the eeror on IMU tab is:


Code:
Traceback (most recent call last):
 File "autopilot_calibration.py", line 267, in onPaintGLBoatPlot
   self.boat_plot.display(self.fusionQPose)
 File "/home/pi/pypilot/ui/boatplot.py", line 72, in display
   self.obj.draw()
 File "/usr/local/lib/python2.7/dist-packages/pywavefront/__init__.py", line 57, in draw
   this_mesh.draw()
 File "/usr/local/lib/python2.7/dist-packages/pywavefront/mesh.py", line 63, in draw
   material.draw()
 File "/usr/local/lib/python2.7/dist-packages/pywavefront/material.py", line 103, in draw
   glMaterialf(face, GL_SHININESS, self.shininess)
 File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/lib.py", line 104, in errcheck
   raise GLException(msg)
pyglet.gl.lib.GLException: invalid value
Ah I forgot about this !!!

Just comment out line 103 in material.py or add
self.shininess = min(128, self.shininess)
just before it.

I think it's a bug in pywavefront
Reply


Messages In This Thread
Pypilot - by Sailoog - 2017-07-02, 01:14 PM
RE: Pypilot - by Sailoog - 2017-07-02, 01:22 PM
RE: Pypilot - by seandepagnier - 2017-07-02, 03:24 PM
RE: Pypilot - by Sailoog - 2017-07-02, 04:37 PM
RE: Pypilot - by Sailoog - 2017-07-02, 06:39 PM
RE: Pypilot - by seandepagnier - 2017-07-02, 07:09 PM
RE: Pypilot - by Sailoog - 2017-07-02, 07:05 PM
RE: Pypilot - by Sailoog - 2017-07-02, 08:21 PM
RE: Pypilot - by seandepagnier - 2017-07-02, 10:22 PM
RE: Pypilot - by Sailoog - 2017-07-04, 04:35 PM
RE: Pypilot - by seandepagnier - 2017-07-04, 04:58 PM
RE: Pypilot - by Sailoog - 2017-07-04, 05:58 PM
RE: Pypilot - by seandepagnier - 2017-07-04, 06:33 PM
RE: Pypilot - by Sailoog - 2017-07-04, 06:55 PM
RE: Pypilot - by Sailoog - 2017-07-05, 06:55 PM
RE: Pypilot - by seandepagnier - 2017-07-07, 03:57 PM
RE: Pypilot - by Sailoog - 2017-07-07, 07:02 PM
RE: Pypilot - by Sailoog - 2017-07-07, 07:08 PM
RE: Pypilot - by seandepagnier - 2017-07-08, 02:29 AM
RE: Pypilot - by Sailoog - 2017-07-10, 06:23 PM
RE: Pypilot - by seandepagnier - 2017-07-11, 01:44 AM
RE: Pypilot - by Sailoog - 2017-08-06, 08:41 PM
RE: Pypilot - by gaspbut - 2017-09-10, 08:50 AM
RE: Pypilot - by Sailoog - 2017-08-06, 09:31 PM
RE: Pypilot - by Sailoog - 2017-08-08, 07:04 PM
RE: Pypilot - by seandepagnier - 2017-08-10, 08:38 PM
RE: Pypilot - by Sailoog - 2017-08-11, 05:08 PM
RE: Pypilot - by lordzahl - 2017-08-12, 06:29 AM
RE: Pypilot - by waterman480 - 2017-08-11, 11:27 PM
RE: Pypilot - by waterman480 - 2017-08-12, 03:54 PM
RE: Pypilot - by seandepagnier - 2017-08-14, 07:14 PM
RE: Pypilot - by Sailoog - 2017-08-21, 11:05 AM
RE: Pypilot - by seandepagnier - 2017-08-23, 07:26 PM
RE: Pypilot - by jim321 - 2017-09-10, 09:13 AM
RE: Pypilot - by Sailoog - 2017-10-08, 01:54 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)