# Camera 2
conf2 = sl.FusionConfiguration()
conf2.serial_number = ********
conf2.input_type.set_from_stream("192.168.249.188", 30002)
conf2.communication_parameters.set_for_local_network(30002, "192.168.249.188")
conf2.pose = sl.Transform()
conf2.pose.set_rotation_matrix(sl.Rotation([
0.016826, -0.010513, 0.999803,
-0.002701, 0.999941, 0.010560,
-0.999855, -0.002878, 0.016797
]))
conf2.pose.set_translation(sl.Translation(-2.546154, -1.101453, 2.341287))
fusion_configurations.append(conf2)
The function set_for_local_network doesn’t work.
conf2.communication_parameters before and after is the same.
I’m using ZED SDK 5.0.5
Hi,
can you share what you get when printing ‘conf2.communication_parameters.ip_address’ please?
I try and it’s completely empty. By using debugger I see that the communication_type parameter is default one (INTRA_PROCESS).
I’ve been able to reproduce the issue on our end, and we’ll be addressing it in the next patch release.
Best,
1 Like
LuckyJ
5
Hi @giulioaugello,
While the issue is being resolved, as a workaround, you can do
import pyzed.sl as sl
conf2 = sl.FusionConfiguration()
conf2.serial_number = 123456
# Workaround for the input type
input_type = conf2.input_type
input_type.set_from_stream("192.168.249.188", 30002)
conf2.input_type = input_type
# Workaround for the communication parameters
communication_parameters = conf2.communication_parameters
communication_parameters.set_for_local_network(30002, "192.168.249.188")
conf2.communication_parameters = communication_parameters
# Workaround for the pose
pose = conf2.pose
rotation = sl.Rotation()
rotation.r = [
0.016826, -0.010513, 0.999803,
-0.002701, 0.999941, 0.010560,
-0.999855, -0.002878, 0.016797
]
pose.set_rotation_matrix(rotation)
translation = sl.Translation()
translation.init_vector(-2.546154, -1.101453, 2.341287)
pose.set_translation(translation)
conf2.pose = pose
# Verify it's fine
print(f"{conf2.communication_parameters.ip_address = }")
print(f"{conf2.communication_parameters.port = }")
print(f"{conf2.pose = }")
In the next release (or the one after, please check the release notes to know if it has been included), you’ll be able to properly do
import pyzed.sl as sl
conf2 = sl.FusionConfiguration()
conf2.serial_number = 123456
conf2.input_type.set_from_stream("192.168.249.188", 30002) # No workaround
conf2.communication_parameters.set_for_local_network(30002, "192.168.249.188") # No workaround
conf2.pose.set_rotation_matrix(sl.Rotation([
0.016826, -0.010513, 0.999803,
-0.002701, 0.999941, 0.010560,
-0.999855, -0.002878, 0.016797
])) # No workaround
conf2.pose.set_translation(sl.Translation([-2.546154, -1.101453, 2.341287])) # No workaround
# Verify it's fine
print(f"{conf2.communication_parameters.ip_address = }")
print(f"{conf2.communication_parameters.port = }")
print(f"{conf2.pose = }")
1 Like