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 recently made a PR that should address your second issue (with the try-catch block).
Regarding the first problem with the AddRaw method, there are actually 4 lines, 61-64, that all invoke that method. Is it just line 64 that causes the problem or do all of them throw the same error? UE5 still uses delegates, so I'm kind of confused as to what is causing the problem.
Hi,
The plugin works fine during development but when I try to build it for my Quest 3, I get two errors.
/Plugins/ROSIntegration-master/Source/ROSIntegration/Private/rosbridge2cpp/WebsocketConnection.cpp(64,28): error: no matching member function for call to 'AddRaw'
WebSocket->OnRawMessage().AddRaw(this, &WebsocketConnection::OnRawMessage);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
UnrealEngine/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl(753,25): note: candidate function [with UserClass = WebsocketConnection, VarTypes = <>] not viable: no known conversion from 'void (WebsocketConnection::*)(const void , size_t, size_t)' to 'typename TMemFunPtrType<false, WebsocketConnection, void (const void , unsigned long long, unsigned long long)>::Type' (aka 'void (WebsocketConnection::)(const void , unsigned long long, unsigned long long)') for 2nd argument
inline FDelegateHandle AddRaw(UserClass InUserObject, typename TMemFunPtrType<false, UserClass, void (ParamTypes..., VarTypes...)>::Type InFunc, VarTypes... Vars)
^
UnrealEngine/Engine/Source/Runtime/Core/Public/Delegates/DelegateSignatureImpl.inl(760,25): note: candidate function [with UserClass = WebsocketConnection, VarTypes = <>] not viable: no known conversion from 'void (WebsocketConnection::)(const void *, size_t, size_t)' to 'typename TMemFunPtrType<true, WebsocketConnection, void (const void , unsigned long long, unsigned long long)>::Type' (aka 'void (WebsocketConnection::)(const void , unsigned long long, unsigned long long) const') for 2nd argument
inline FDelegateHandle AddRaw(const UserClass InUserObject, typename TMemFunPtrType<true, UserClass, void (ParamTypes..., VarTypes...)>::Type InFunc, VarTypes... Vars)
^
2. Issue related to Exception handling
Plugins/ROSIntegration-master/Source/ROSIntegration/Private/rosbridge2cpp/WebsocketConnection.cpp(110,2): error: cannot use 'try' with exceptions disabled
try {
^
I have succeeded in removing all other errors but I am stuck with these two now. Please help me to resolve this.
I am using UE 5.0.3
The text was updated successfully, but these errors were encountered: