Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camera lens intrinsics #4

Open
prahjister opened this issue Mar 29, 2018 · 4 comments
Open

camera lens intrinsics #4

prahjister opened this issue Mar 29, 2018 · 4 comments
Assignees

Comments

@prahjister
Copy link

I am guessing that i need to find camera lens intrinsics first

I am trying to follow process

All compiled apps are running on the arm box
I first started mjpg-streamer and i verified it is running by browser on my windows box http://10.0.0.201:8080/?action=stream
I start sldisp and my screen starts to flash on arm box
I alt tab out and run slcapture.py and it takes control of my mouse and i have a plus on my cursor. I cannot do anything except move the mouse at this time with my mouse and a blank terminal window is opened and is blank. This is also on my arm box
I alt tab out to sldisp and screen is flashing

In the slcapture.py
final_destination = "~/completed_scans"

cam_server_addr = "127.0.0.1"
cam_server_port = 4011 port 8080?????

turn_server_addr = "127.0.0.1""
turn_server_port = 4013

GUI_server_addr = "10.0.0.17" windows box ip address??????
GUI_server_port = 12000

control_server_addr = "127.0.0.1" not sure what ip address this is
control_server_port = 3210

I run slcontrol on my windows box with required libraries and press scan and get nothing

I assume that all these IP address are the arm box

remoteControl = new NetAddress("10.0.0.201", 4010);
remoteDisplay = new NetAddress("10.0.0.201", 4021);
//remoteTurntable = new NetAddress("10.0.0.201", 4013);

@jhdewitt
Copy link
Owner

jhdewitt commented Mar 29, 2018

Honestly, I need to take tonight to review the network connections code between the programs to clean it up and separate setting them out into an argument/file; having to recompile the program to change this seems pretty unreasonable.

Anyways, it seems I have comments in my local version that haven't been committed yet. Here it is but with the edits I think you want.

# mjpg streamer
cam_server_addr = "127.0.0.1"

# sldisp
display_server_addr = "127.0.0.1"

# slturn
turn_server_addr = "127.0.0.1" // not applicable

# slcontrol GUI
GUI_server_addr = "" // windows box ip

# this program (slcapture.py)
control_server_addr = "127.0.0.1"

@prahjister
Copy link
Author

How do I know if slcapture is running properly?

@jhdewitt
Copy link
Owner

If slcapture is running properly, it should have an open connection to mjpg-streamer and be showing timestamps of the incoming frames.

I start sldisp and my screen starts to flash on arm box
I alt tab out and run slcapture.py and it takes control of my mouse and i have a plus on my cursor. I cannot do anything except move the mouse at this time with my mouse and a blank terminal window is opened and is blank. This is also on my arm box
I alt tab out to sldisp and screen is flashing

The repo is a little behind on all changes. Concerned about breaking stuff but feeling lucky today so please pull new sldisp.cpp from repo 4c72516

@prahjister
Copy link
Author

prahjister commented Mar 29, 2018

prahjister@amlogic:~/sltk-master$ make sldisp
g++  -lstdc++ sldisp.cpp util.cpp -o bin/sldisp `sdl2-config --static-libs --cflags` `pkg-config --libs --cflags liblo` -lGL -lGLU -lglut
sldisp.cpp: In function ‘int main(int, char**)’:
sldisp.cpp:673:35: error: ‘SERVER_CONTROL_ADDRESS’ was not declared in this scope
     lo_address t = lo_address_new(SERVER_CONTROL_ADDRESS, SERVER_CONTROL_PORT);
                                   ^
sldisp.cpp:673:59: error: ‘SERVER_CONTROL_PORT’ was not declared in this scope
     lo_address t = lo_address_new(SERVER_CONTROL_ADDRESS, SERVER_CONTROL_PORT);
                                                           ^
Makefile:67: recipe for target 'sldisp' failed
make: *** [sldisp] Error 1
prahjister@amlogic:~/sltk-master$

This is error with latest sldisp.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants