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

support stream and transport layer for GigE #193

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions spinnaker_camera_driver/config/blackfly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,16 @@ parameters:
- name: chunk_enable_timestamp
type: bool
node: ChunkDataControl/ChunkEnable
#
# ------- stream layer
#
- name: "stream_buffer_handling_mode"
type: enum
# valid values: "NewestFirst", "OldestFirst", "NewestOnly", "OldestFirstOverwrite"
node: BufferHandlingControl/StreamBufferHandlingMode
#
# ------- transport layer
#
- name: "multicast_monitor_mode"
type: bool
node: "DeviceControl/DeviceMulticastMonitorMode"
7 changes: 7 additions & 0 deletions spinnaker_camera_driver/config/blackfly_s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,10 @@ parameters:
- name: chunk_enable_timestamp
type: bool
node: ChunkDataControl/ChunkEnable
#
# ------- stream layer
#
- name: "stream_buffer_handling_mode"
type: enum
# valid values: "NewestFirst", "OldestFirst", "NewestOnly", "OldestFirstOverwrite"
node: BufferHandlingControl/StreamBufferHandlingMode
14 changes: 14 additions & 0 deletions spinnaker_camera_driver/launch/driver_node.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@
'chunk_selector_timestamp': 'Timestamp',
'chunk_enable_timestamp': True,
},
'blackfly': {
'debug': False,
'dump_node_map': False,
'gain_auto': 'Continuous',
'pixel_format': 'BayerRG8',
'exposure_auto': 'Continuous',
'frame_rate_auto': 'Off',
'frame_rate': 40.0,
'frame_rate_enable': True,
'buffer_queue_size': 10,
'trigger_mode': 'Off',
# 'stream_buffer_handling_mode': 'NewestFirst',
# 'multicast_monitor_mode': False
},
'chameleon': {
'debug': False,
'compute_brightness': False,
Expand Down
16 changes: 13 additions & 3 deletions spinnaker_camera_driver/src/genicam_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,19 @@ static std::optional<CNodePtr> find_node(
std::optional<CNodePtr> find_node(
const std::string & path, Spinnaker::CameraPtr cam, bool debug, bool allow_unreadable)
{
INodeMap & appLayerNodeMap = cam->GetNodeMap();
CNodePtr rootNode = appLayerNodeMap.GetNode("Root");
return (find_node(path, rootNode, debug, allow_unreadable));
CNodePtr rootNode = cam->GetNodeMap().GetNode("Root");
std::optional<CNodePtr> nodeptr = find_node(path, rootNode, debug, allow_unreadable);
if (nodeptr) {
return (nodeptr);
}
rootNode = cam->GetTLStreamNodeMap().GetNode("Root");
nodeptr = find_node(path, rootNode, debug, allow_unreadable);
if (nodeptr) {
return (nodeptr);
}
rootNode = cam->GetTLDeviceNodeMap().GetNode("Root");
nodeptr = find_node(path, rootNode, debug, allow_unreadable);
return (nodeptr);
}
} // namespace genicam_utils
} // namespace spinnaker_camera_driver
Loading