Giter Site home page Giter Site logo

rticonnextdds-getting-started's People

Contributors

alexcamposruiz avatar alvinkrebs avatar hman523 avatar lulivi avatar rgrti avatar rkorte avatar rosemwahlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rticonnextdds-getting-started's Issues

helloworld doesn't work on csharp

on windows 11,

cd 2_hello_world
rtiddsgen -language c# -example net6 -d csharp -ppDisable hello_world.idl
open hello_world.csproj by vs2019
run instance with --pub
I got exception when run
using DomainParticipant participant = DomainParticipantFactory.Instance.CreateParticipant(domainId);

Omg.Dds.Core.DdsException
HResult=0x80131500
Message=DDS operation failed:
Source=Rti.ConnextDds
StackTrace:
at Rti.Dds.NativeInterface.Helpers.ReturnCode.CheckResult(IntPtr result)
at Rti.Dds.NativeInterface.Domain.NativeDomainParticipant.CreateNative(Int32 domainId, DDS_DomainParticipantQos& nativeQos, Object managedParticipant, Boolean enable)
at Rti.Dds.NativeInterface.Domain.NativeDomainParticipant..ctor(Int32 domainId, Object managedParticipant, Boolean enable)
at Rti.Dds.Domain.DomainParticipant..ctor(Int32 domainId, Boolean enable)
at Rti.Dds.Domain.DomainParticipantFactory.CreateParticipant(Int32 domainId)
at HelloWorldPublisher.RunPublisher(Int32 domainId, Int32 sampleCount) in D:\fengchen\repo\rticonnextdds-getting-started\2_hello_world\csharp\hello_worldPublisher.cs:line 37
at HelloWorldProgram.Main(String[] args) in D:\fengchen\repo\rticonnextdds-getting-started\2_hello_world\csharp\hello_worldProgram.cs:line 34

please help me out
hello_world.zip

imcluding libraries in rti-dds

Hi happy new year!! Im megan in south Korea.

I'm trying to connect opencv with rtidds to send video from pub to sub.
Need to compile but im having a hard time including opencv libraries in rtidds makefile.
Actually I cross-compiled in ubuntu to use the program in raspberry pi .

I have to include cflags and libs(for opencv) to rtidds makefile.

please needs some help.
(also if you know how to use octetset please let me know.
How to put in video data to octetseq and get it out from it)

thank you

from megan

How to? RTI Admin Console - command line configuration option.

Hello,

I have installed recently the RTI Connect 6.1 DDS on my windows machine.
When I try to run DDS Admin Console from RTI Launcher App - it throws error

"The configuration area at:
/ rti_workspace\6.1.1\user_config\admin_console\x64\Win64\Configuration is not writable.
Please choose a writable location using the '-configuration' command line option."

May I know, how to run admin console from command line to setup the configuration option.

Thanks.

hello_world example subscriber unable to receive data

Hi,

I have followed the documentation to setup and build hello world example from the link below,

https://community.rti.com/static/documentation/connext-dds/6.0.1/doc/manuals/connext_dds/getting_started/cpp11/intro_pubsub_cpp.html

~/rti_workspace/6.1.1/examples/getting_started/2_hello_world/c++11$ ./objs/x64Linux4gcc7.3.0/hello_world_publisher
Publisher output,
Writing HelloWorld, count 242
Writing HelloWorld, count 243
Writing HelloWorld, count 244

~/rti_workspace/6.1.1/examples/getting_started/2_hello_world/c++11$ ./objs/x64Linux4gcc7.3.0/hello_world_subscriber
Subscriber output,
HelloWorld subscriber sleeping for 4 sec...
HelloWorld subscriber sleeping for 4 sec...
HelloWorld subscriber sleeping for 4 sec...
[msg: ]
HelloWorld subscriber sleeping for 4 sec...
[msg: ]
HelloWorld subscriber sleeping for 4 sec...
HelloWorld subscriber sleeping for 4 sec...
[msg: ]
HelloWorld subscriber sleeping for 4 sec...
[msg: ]
HelloWorld subscriber sleeping for 4 sec...

From the log above, [msg: ] doesn't contain the actual data, it's empty.

I run this RTI DDS 6.1.1 example on remote Linux PC connected via SSH.
I was able to verify shapes demo from rtilauncher application.

arg text is incorrect for ingrediant_application

ingrediant_application's --help says:

-k, --station-kind <int>    The type of ingredient station to start.\n"\
                    "                                Used only by ingredient application.\n"\
                    "                                Values:\n"\
                    "                                   COCOA_BUTTER_CONTROLLER,\n"\
                    "                                   SUGAR_CONTROLLER,\n"\
                    "                                   MILK_CONTROLLER,\n"\
                    "                                   VANILLA_CONTROLLER\n"\

" -k, --station-kind <int> The type of ingredient station to start.\n"\

However using ints doesn't seem to work:

Release\ingredient_application.exe -k 1
1 station starting
Exception in run_example(): Failed to create ContentFilteredTopic

Instead it looks like the string is required

Release\ingredient_application.exe -k SUGAR_CONTROLLER
SUGAR_CONTROLLER station starting
Waiting for lot
Waiting for lot

I suggest application.hpp on both versions of c++, and across all examples be changed to fix this

Failed to link libnddscpp2.so in gcc8.3

Screenshot from 2021-11-22 01-33-33

/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to operator new(unsigned long)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::runtime_error::what() const@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to typeinfo for std::exception@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_begin_catch@CXXABI_1.3'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__throw_length_error(char const*)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__throw_bad_alloc()@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for std::bad_alloc@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::bad_alloc::~bad_alloc()@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_pure_virtual@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to typeinfo for std::bad_alloc@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for __cxxabiv1::__class_type_info@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __dynamic_cast@CXXABI_1.3'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_assign(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for std::basic_ios<char, std::char_traits<char> >@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::invalid_argument::invalid_argument(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::logic_error::~logic_error()@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::locale::~locale()@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::ios_base::~ios_base()@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::invalid_argument::~invalid_argument()@GLIBCXX_3.4.15' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_guard_abort@CXXABI_1.3'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::ios_base::ios_base()@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::_Rb_tree_decrement(std::_Rb_tree_node_base*)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_free_exception@CXXABI_1.3'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to typeinfo for std::runtime_error@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned long, wchar_t)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __gxx_personality_v0@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_call_unexpected@CXXABI_1.3'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_guard_acquire@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::logic_error::logic_error(std::logic_error const&)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::_Rb_tree_increment(std::_Rb_tree_node_base*)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::exception::~exception()@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to typeinfo for std::logic_error@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_throw@CXXABI_1.3'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for std::basic_streambuf<char, std::char_traits<char> >@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::ostream& std::ostream::_M_insert<void const*>(void const*)@GLIBCXX_3.4.9'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to typeinfo for std::invalid_argument@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::reserve(unsigned long)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::ios_base::Init::~Init()@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::runtime_error::~runtime_error()@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::resize(unsigned long, char)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__throw_logic_error(char const*)@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to operator delete(void*)@GLIBCXX_3.4'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__throw_bad_cast()@GLIBCXX_3.4' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to VTT for std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to __cxa_allocate_exception@CXXABI_1.3' /opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/opt/toolchain/bin/../lib/gcc/aarch64-linux-gnu/8.3.0/../../../../aarch64-linux-gnu/bin/ld: /work/modules/3rd/dds/lib/linux/aarch64/libnddscpp2.so: undefined reference to `__cxa_guard_release@CXXABI_1.3'

.NET 5 Linux Debugger Issue

Hi there,
I imagine most C# .NET 5 users on Linux running your software will be using visual studio code.
The subscriber brings the debugger down, which might be easier for you to troubleshoot (can't create a reproducible setup for them (they'll probably not have a license), so I though i'll post this here).

Steps to reproduce:

  • Checkout master (3a29c8b attow)
  • In 2_hello_world/csharp:
    ** add the license to the USER_QOS_PROFILES.xml
    ** Generate the cs files /opt/rti_connext_dds-6.1.0/bin/rtiddsgen -language c# ../hello_world.idl
    ** Copy the generated files to the csharp folder
    ** Run dotnet restore && dotnet build

Running dotnet run --sub and dotnet run --pub will work, i.e. samples are received.

When debugging the subscriber in vscode, e.g with a launch file:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "sub",
      "type": "coreclr",
      "request": "launch",
      "program": "${workspaceFolder}/2_hello_world/csharp/bin/Debug/net5.0/hello_world.dll",
      "args": [
        "--sub"
      ],
      "cwd": "${workspaceFolder}/2_hello_world/csharp",
      "stopAtEntry": false,
      "env": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "logging": {
        "engineLogging": true
      }
    },
    {
      "name": "pub",
      "type": "coreclr",
      "request": "launch",
      "program": "${workspaceFolder}/2_hello_world/csharp/bin/Debug/net5.0/hello_world.dll",
      "args": [
        "--pub"
      ],
      "cwd": "${workspaceFolder}/2_hello_world/csharp",
      "stopAtEntry": false,
      "env": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
    },
  ]
}

as soon as the subscriber receives data, the debugger exits saying "hello_world.dll has exited with code 0" and coredumpctl list dotnet exited with SIGTRAP.
This renders the strong types unusable, which is a deal-breaker, DynamicData works.

Any ideas as to how to go about fixing this?

Converting hello_world.idl to XML for Python

I am running the 2_hello_world example for Python. I am hitting a parsing issue with the converted hello_world.idl XML and while I can work around it by following other examples, I am wondering if I am performing any steps incorrectly or if there are additional steps apart from rticonnextdds-getting-started/2_hello_world/python/README.md.

To convert hello_world.idl to XML I am using:

rtiddsgen -convertToXml ../hello_world.idl

The output XML is:

<?xml version="1.0" encoding="UTF-8"?>
<types xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:////Applications/rti_connext_dds-6.0.1/bin/../resource/app/app_support/rtiddsgen/schema/rti_dds_topic_types.xsd">
<struct name= "HelloWorld">
  <member name="msg" stringMaxLength="256" type="string"/>
</struct>
</types>

Next I run HelloWorldPublisher.py with the following error output:

python3 HelloWorldPublisher.py

DDS_XMLStruct_initialize:!init XML struct object
DDS_XMLStruct_newI:!init XML struct object
RTIXMLParser_onStartTag:Parse error at line 3: Error processing tag 'struct'
RTIXMLParser_parseFromFile_ex:Parse error in file '/Users/test/Documents/test/rticonnextdds-getting-started/2_hello_world/python/../hello_world.xml'
DDS_XMLParser_parse_from_file:Error parsing file
DDS_QosProvider_load_profiles_from_urlI:ERROR: loading profiles file '/Users/test/Documents/test/rticonnextdds-getting-started/2_hello_world/python/../hello_world.xml'
DDS_QosProvider_load_profiles_from_url_groupI:ERROR: loading profiles
DDS_QosProvider_load_profiles_from_url_sequenceI:ERROR: loading profiles
DDS_QosProvider_load_profiles_from_policyI:ERROR: loading profiles
DDS_QosProvider_load_profilesI:ERROR: loading profiles
Traceback (most recent call last):
File "HelloWorldPublisher.py", line 83, in
run_example(args.domain_id, args.sample_count)
File "HelloWorldPublisher.py", line 30, in run_example
provider = dds.QosProvider(FILE)
rti.connextdds.Error:
DDS_XMLStruct_initialize:!init XML struct object
DDS_XMLStruct_newI:!init XML struct object
RTIXMLParser_onStartTag:Parse error at line 3: Error processing tag 'struct'
RTIXMLParser_parseFromFile_ex:Parse error in file '/Users/test/Documents/test/rticonnextdds-getting-started/2_hello_world/python/../hello_world.xml'
DDS_XMLParser_parse_from_file:Error parsing file
DDS_QosProvider_load_profiles_from_urlI:ERROR: loading profiles file '/Users/test/Documents/test/rticonnextdds-getting-started/2_hello_world/python/../hello_world.xml'
DDS_QosProvider_load_profiles_from_url_groupI:ERROR: loading profiles
DDS_QosProvider_load_profiles_from_url_sequenceI:ERROR: loading profiles
DDS_QosProvider_load_profiles_from_policyI:ERROR: loading profiles
DDS_QosProvider_load_profilesI:ERROR: loading profiles
reload profiles

I can fix this by adopting an XML style similar to the other examples. Example:

<?xml version="1.0" encoding="UTF-8"?>
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="http://community.rti.com/schema/6.0.1/rti_dds_qos_profiles.xsd"
   version="6.0.1">
  <type_library name="builtin_topics_lib">
    <struct name= "HelloWorld">
      <member name="msg" stringMaxLength="256" type="string"/>
    </struct>
  </type_library>
</dds>

I am wondering if there is additional configuration I need for rtiddsgen to have the XML conversion work seamlessly or if this is a known issue/change.

Thank you!

[hello_world][c++11] invalid tag in cloned USER_QOS_PROFILES.xml

Hi,

I'm using RTI dds version 6.0.1 and following the get started documentation for hello world example.
It went smooth until I launch the publisher. The rti framework complains as below:
RTIXMLParser_validateOnStartTag:Parse error at line 66: Unexpected tag 'domain_participant_qos' RTIXMLParser_parseFromFile_ex:Parse error in file 'USER_QOS_PROFILES.xml' DDS_XMLParser_parse_from_file:Error parsing file DDS_QosProvider_load_profiles_from_current_dirI:ERROR: loading profiles file 'USER_QOS_PROFILES.xml'

I then tried to remove the domain_participant_qos tag then the publisher works normally.

Kindly revert back if you need more info.

Update:
I have tried to replace the domain_participant_qos with the deprecated participant_qos tag then the publisher doesn't complain about invalid tag anymore.

[Request] Add example project about advanced IDL type definitions

I don't know how to construct dynamic data objects containing sequences, unions, or nested types with the rti.connextdds python package, and find very difficult to find any tutorials, guides or example code about that online. I've looked through the example projects contained in this repository, but was disappointed to find that more advanced type definitions like the ones I mentioned are not covered by any of them.

I think it might be good if you could add an example project covering all - or at least most of - the IDL features supported by rti connext, including the more complex ones.

Update for example_4_keys_instances for Python

While running through the Python examples, I noticed a few updates to example 4 that seem to be more inline with the C++ step-by-step flow at https://community.rti.com/static/documentation/connext-dds/6.0.1/doc/manuals/connext_dds/getting_started/cpp11/intro_keys_instances.html#example-chocolate-factory.

Example edits in #50

There may be some confusion as of step 4.5 when the user starts to learn about ChocolateLotState instance disposal. It looked like monitor_lot_state was being called for temperature topics (which aren't explored until 4.6+), leading to misleading output (e.g., "Received lot update: ").

The example changes above seem to fix this, in that the readers/monitors are hooked up correctly, the output matches the guide and they can see the instance disposal in step 4.5.

The user can still later explore the ChocolateTemperature reader support in steps 4.6+.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.