Extend-Robotics / camera_aravis

A ROS1 driver for GenICam based GigE and USB3 cameras.
Other
1 stars 1 forks source link

setting MTU at launchtime #24

Closed bmegli closed 1 year ago

bmegli commented 1 year ago

In:

We identified that MTU has drastic effect in high bandwidth configurations for MotionCam3D.

We want to be able to set correct MTU at launch time or auto adapt to OS network interface MTU.

bmegli commented 1 year ago

In:

We identified that there are:

Setting rosparam mtu doesn't result in change on device

bmegli commented 1 year ago

The sequence of rosparam vs dynamic reconfigure server init is different in this fork and origin.

Origin

Reads rosparam

The first dynamic reconfigure callback is called when setting callback function.

As a result:

This fork

As a result:

Bottom Line

Neither works

bmegli commented 1 year ago

The main problem is:

bmegli commented 1 year ago

The secondary problems are:

bmegli commented 1 year ago

The problem in the original repository is assumption:

bmegli commented 1 year ago

So one way of solving it is:

bmegli commented 1 year ago

In 4232487 logic for setting MTU from rosparam was fixed.

Now there is question if this rosparam should be kept at all

bmegli commented 1 year ago

Dynamic reconfigure works by:

What breaks this behavior is camera_aravis call

reconfigure_server_->updateConfig(config_);

But maybe there is a reason behind above call:

bmegli commented 1 year ago
reconfigure_server_->updateConfig(config_);

But maybe there is a reason behind above call:

bmegli commented 1 year ago

Ok, let's leave the fixed MTU setup from rosparam for now.

The rest is separate and general issue.