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

No "running" status message when using specific device user id #194

Open
landersson opened this issue Dec 11, 2023 · 2 comments
Open

No "running" status message when using specific device user id #194

landersson opened this issue Dec 11, 2023 · 2 comments

Comments

@landersson
Copy link

Hi,

What's the reason for only publishing a "running" status message if pylon_camera_parameter_set_.deviceUserID() is empty?

if (this->pylon_camera_ != nullptr && this->pylon_camera_parameter_set_.deviceUserID().empty())

I'm trying to add support for plug-and-play autodetection of Basler cameras. I launch a ros2 driver instance for each camera, using the device_user_id parameter to make the driver wait for a particular camera to become available. But with the logic applied on the line linked above, I never get a "running" status messager, because pylon_camera_parameter_set_.deviceUserID() is not empty.

@FrancoisPicardDTI
Copy link
Collaborator

Hello @landersson
Maybe can you suggest some changes through a dedicated pull request?

@FrancoisPicardDTI
Copy link
Collaborator

Hello @landersson
Trying to reproduce the problem here.

What I did on my side:

  • My launch file points to one given .yaml file where I have specified the user id of the camera I want to connect
  • I am launching a ros2 drive instance, through this launch file, and it connects to the specified camera
  • If I am unplugging it and then plugging it again, the driver connects to the camera without any problem
  • If I am launching the instance with the camera unplugged, and then plug it, the driver connects to the camera

So in your setup:

  • Where do you specify this device user id?
  • How do you start the driver exactly?

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

No branches or pull requests

2 participants