We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好! 我试着在我的电脑上运行celex5-ros,会在Register display topic name这一系列操作时候中断,有时输出还会出现topic_name乱码,如图所示。 我查看发现所有topic_name在make_shared时候是共用一段内存的,是否需要加个锁或者有其他的处理方式,请大神指点!非常感谢。
The text was updated successfully, but these errors were encountered:
没共享内存吧,make_shared都是创建的单独的对象。抛出的这个异常看起来是ros::Rate时间相关抛出来的,再加上您提到的乱码的现象,可能是CeleX5DisplayPubFactory构造函数中创建publish_thread_线程出了问题。我这边暂时没法复现这个问题,你可以修改下:创建publish_thread_时把topic_name和循环频率loop_rate硬编码,试一下
Sorry, something went wrong.
我的理解也是make_shared都是单独创建的,但是在这里试着输出topic_name的地址结果却是一样的。 loop_rate我看您的源代码里已经是设为fps=100了呀,topic_name如何在创建publish_thread_时硬编码我没太理解= =。。。
不好意思,前些天忘记回复您了...一直搁置到了现在。这确实看起来很诡异啊,这个topic_name按道理也是值传递的,并没有传递引用,地址一样的话...可能是其他问题?我再看下
No branches or pull requests
你好!
![image](https://user-images.githubusercontent.com/19809051/134448372-6fa17742-b522-4c13-8165-5781d0b709e3.png)
我试着在我的电脑上运行celex5-ros,会在Register display topic name这一系列操作时候中断,有时输出还会出现topic_name乱码,如图所示。
我查看发现所有topic_name在make_shared时候是共用一段内存的,是否需要加个锁或者有其他的处理方式,请大神指点!非常感谢。
The text was updated successfully, but these errors were encountered: