You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
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)
The text was updated successfully, but these errors were encountered:
brean
changed the title
Trigger implementation
Trigger implementation issues
Jan 14, 2024
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 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!
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)
The text was updated successfully, but these errors were encountered: