Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Lidar in python - Quaternions, Angular Velocity, Linear Accelleration?
Post: RE: Lidar in python - Quaternions, Angular Velocit...
soo, i solved it finally, what i need is quaternions to x,y,z here is the code i scalped...
import math
def quaternion_to_euler_angle(w, x, y, z):
ysqr = y * y
t0 = +2.0 * (w * x + y * z)... |
|
jttolleson |
General Coding Help |
2 |
537 |
Nov-27-2023, 02:05 AM |
|
|
Thread: Lidar in python - Quaternions, Angular Velocity, Linear Accelleration?
Post: Lidar in python - Quaternions, Angular Velocity, L...
Hello all: Jayson Here; and I have struggled with getting lidar implemented in python, now i have struck gold with my new UniTree lidar. It reads me data to python and puts it in lists....I just do no... |
|
jttolleson |
General Coding Help |
2 |
537 |
Nov-17-2023, 06:22 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
OK, So I have read through our post thoroughly and have recompiled code i understand:
lidar8.py
import serial
import time
import binascii
import math
#################################################... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Nov-02-2023, 05:10 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
#!/usr/bin/env python3
import serial
from serial import Serial
import struct
from struct import unpack
import time
#####################################################################################... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Oct-31-2023, 10:36 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
Hi all, Jay T here again...I have some lidar chips and batteries on a table with a raspberry pi and will run the code via ssh again today. It has been some time................i caught some huge fis... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Oct-31-2023, 09:02 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
Hello....I have been away from my side project doing realer stuff and have gotten back toward lidar again .... a couple of weeks later...
I read the code less tired and i understand much better....how... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-25-2023, 03:03 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
Well, time to drop another line: i am definitely working here in a minute or two, its just i do not fully understand your example yet.
I put the code together like this...
###########################... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-14-2023, 04:51 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
Hello all,
I have worked some with the suggestions, i havent gotten data yet however i will continue to work today......right now i am unsure if the data packet is at 11 or 14 bytes in ??? well
her... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-09-2023, 05:25 PM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
(Aug-04-2023, 03:19 AM)buran Wrote: You pressed Ctrl+C
yes i did, to stop the program from printing just zeros, i think i need to look at the manual some more. also. |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-04-2023, 04:19 AM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
so this is what i will be working with for the next bit....
import serial
import time
import binascii
import math
serious = serial.Serial(port='/dev/ttyUSB0', baudrate=921600, timeout=10.0, bytesize... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-04-2023, 02:55 AM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: RE: Pyserial issues with proper loops and binary
(Aug-03-2023, 09:04 PM)deanhystad Wrote: I know that b' ' is a "bytes" literal, but this just means the characters are ascii, not unicode. b'0b1111' is not 15 or 0xF, it is a string of ascii charac... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-04-2023, 01:58 AM |
|
|
Thread: Pyserial issues with proper loops and binary
Post: Pyserial issues with proper loops and binary
So i bought my python programmable Lidar Chip and havent recieved data yet because after opening it up in pyserial i have no idea how to test it...
so i built serial tester code.
with what i have dec... |
|
jttolleson |
General Coding Help |
16 |
2,588 |
Aug-03-2023, 07:59 PM |
|
|
Thread: Some help with my first python class and importing ....im making a lidar program
Post: RE: Some help with my first python class and impor...
well, I have been learning a lot.... at first i new nothing about serial communication in python now i am learning more....
this is the actual answer, not the whole code to my question about, well, n... |
|
jttolleson |
General Coding Help |
7 |
1,199 |
Jul-28-2023, 08:34 AM |
|
|
Thread: Some help with my first python class and importing ....im making a lidar program
Post: RE: Some help with my first python class and impor...
Well, now --
The program health has gone up, dramatically and I am going to see a plot sometime....
right now i have this as possibly my last error:
[attachment=2475]
[attachment=2476]
SO, i need t... |
|
jttolleson |
General Coding Help |
7 |
1,199 |
Jul-26-2023, 09:58 PM |
|
|
Thread: Some help with my first python class and importing ....im making a lidar program
Post: RE: Some help with my first python class and impor...
updated Code:
a "one shot graph"----realtime otw...
##################################################################################
#!/usr/bin/env python3
########################################... |
|
jttolleson |
General Coding Help |
7 |
1,199 |
Jul-26-2023, 09:29 PM |
|
|
Thread: Some help with my first python class and importing ....im making a lidar program
Post: RE: Some help with my first python class and impor...
so, yes ... my imports were, well, not perfect.
and I "did it that way" because that is the same definition as the webpage or the what a LaserProjection() is supposed to be
i believe i should leave i... |
|
jttolleson |
General Coding Help |
7 |
1,199 |
Jul-26-2023, 09:26 PM |
|
|
Thread: Some help with my first python class and importing ....im making a lidar program
Post: RE: Some help with my first python class and impor...
Yup ---- you make sense - i have followed and the program is now working much harder....i cleared up some typos aswell:
A_Fish_Detecting_LIDAR_Program.py
###########################################... |
|
jttolleson |
General Coding Help |
7 |
1,199 |
Jul-26-2023, 08:19 PM |
|
|
Thread: Some help with my first python class and importing ....im making a lidar program
Post: Some help with my first python class and importing...
Hello all,
wow, im tired and have few solutions in the morning now...ok....well maybe i will find some help here.
I am making a personal lidar "fish viewer" for the dock. or pier?
and i have a si... |
|
jttolleson |
General Coding Help |
7 |
1,199 |
Jul-26-2023, 06:18 PM |
|
|
Thread: Kivy App - Python3 script to Android app (opencv)
Post: RE: Kivy App - Python3 script to Android app (open...
So, I have run the program with :
caption=cv2.CAP_V4L2
caption=cv2.CAP_ANDROID
and with no caption
[attachment=2361]
I know believe my Python Code is correct with V4L2 however,
i will need to get be... |
|
jttolleson |
General Coding Help |
7 |
3,475 |
May-08-2023, 05:07 AM |
|
|
Thread: Kivy App - Python3 script to Android app (opencv)
Post: RE: Kivy App - Python3 script to Android app (open...
Well i have put together a degug plan:
a program that prints out what camera (opencv index) actually works...
test.py
import kivy
from kivy.app import App
from kivy.uix.label import Label
import cv... |
|
jttolleson |
General Coding Help |
7 |
3,475 |
May-08-2023, 04:51 AM |