so in the streaming example … i change nothing … like i say … ive tried changing DEPTH.MODE.NONE to DEPTH.MODE.PERFORMANCE but it made no change to the errors
in the receiver program … i did nothing and it worked fine … so i used that to test connections accross local network .
then i edited spatial mapping :
(BTW i also changed init_params to just innt as thats whats used in the sender/reciever files and i was getting confused with the non uniformity of it.)
in the first try i editied the spatial mapping sample by removing its SVO argument and a;dding the argument to add an ip address - and then obviously tried starting it with the ip argument
def main():
print(“Running Spatial Mapping sample … Press ‘q’ to quit”)
# Create a Camera object
zed = sl.Camera()
# Create a InitParameters object and set configuration parameters
init = sl.InitParameters()
init.camera_resolution = sl.RESOLUTION.HD720 # Use HD720 video mode
init.depth_mode = sl.DEPTH_MODE.PERFORMANCE
init.coordinate_units = sl.UNIT.METER # Set coordinate units
init.coordinate_system = sl.COORDINATE_SYSTEM.RIGHT_HANDED_Y_UP # OpenGL coordinates
if (len(sys.argv) > 1) :
ip = sys.argv[1]
init.set_from_stream(ip)
else :
print('Usage : python3 streaming_receiver.py ip')
exit(1)
# If applicable, use the SVO given as parameter
# Otherwise use ZED live stream
###if len(sys.argv) == 2:
### filepath = sys.argv[1]
### print("Using SVO file: {0}".format(filepath))
### init.set_from_svo_file(filepath)
# Open the camera
status = zed.open(init)
if status != sl.ERROR_CODE.SUCCESS:
print(repr(status))
exit()
runtime = sl.RuntimeParameters()
mat = sl.Mat()
in the second try i just added the ip address to the program:
def main():
print(“Running Spatial Mapping sample … Press ‘q’ to quit”)
# Create a Camera object
zed = sl.Camera()
# Create a InitParameters object and set configuration parameters
init = sl.InitParameters()
init.set_from_stream("10.0.0.130", 30000) # Specify the IP and port of the sender
#init.camera_resolution = sl.RESOLUTION.HD720 # Use HD720 video mode
init.coordinate_units = sl.UNIT.METER # Set coordinate units
init.coordinate_system = sl.COORDINATE_SYSTEM.RIGHT_HANDED_Y_UP # OpenGL coordinates
# If applicable, use the SVO given as parameter
# Otherwise use ZED live stream
if len(sys.argv) == 2:
filepath = sys.argv[1]
print("Using SVO file: {0}".format(filepath))
init.set_from_svo_file(filepath)
obviously these are just snippets of the programs … but these were the only changes i made apart from commenting out any refernces to the SVO etc …
seemed to ALMOST work … but just not able to load the camera feed into a freeglut viewer … or somesuch … its starting to hurt my head