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

Trigger implementation issues #202

Open
brean opened this issue Jan 14, 2024 · 2 comments
Open

Trigger implementation issues #202

brean opened this issue Jan 14, 2024 · 2 comments

Comments

@brean
Copy link
Contributor

brean commented Jan 14, 2024

I updated to the current ROSIntegration and noticed that this commit introduces an issue that makes it impossible to compile anymore:
26c6f3f

The issue is that BCON_NEW is not allowed without parameter for the Linux implementation of libbson. However the needed parameter for success and message are added later in line 41 of StdSrvsTriggerResponseConverter.cpp

(see also https://github.com/ros/ros_comm_msgs/blob/kinetic-devel/std_srvs/srv/Trigger.srv )

I think instead of BCON_NEW we need something like BSON_INITIALIZER but I am not familiar enough with libbson to get this working, so maybe someone else can take a look?

My workaround for now is to comment it out and not use Trigger...

I also had to updated rapidjson to the latest master from https://github.com/Tencent/rapidjson to get it running with current Linux Ubuntu 22.04 (but that's another issue/independent of bcon)

@brean brean changed the title Trigger implementation Trigger implementation issues Jan 14, 2024
@tsender
Copy link
Contributor

tsender commented Jan 25, 2024

Hello @brean ,

I myself have not yet updated to the latest version, however I can help you fix this problem on your own fork for now. In the one file you mentioned, you can replace the line *BSONRequest = BCON_NEW(); with *BSONRequest = bson_new(); I did not write that piece of code, but my suggested fix is how I typically work with the libbson library for this plugin. Let me know if this works.

@adarshjamuaar
Copy link

Hello @brean ,

I myself have not yet updated to the latest version, however I can help you fix this problem on your own fork for now. In the one file you mentioned, you can replace the line *BSONRequest = BCON_NEW(); with *BSONRequest = bson_new(); I did not write that piece of code, but my suggested fix is how I typically work with the libbson library for this plugin. Let me know if this works.

I was facing the same issue. Replacing it with bson_new() works. Thanks!

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

3 participants