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

[jsk_network_tools] Add C++ implementation of silverhammer_highspeed_receiver. #1066

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

garaemon
Copy link
Member

@garaemon garaemon commented Aug 4, 2015

Only core is implemented in c++.

It cooperates with python thin wrapper and bridged via ros between them.

  • python is too slow to implement receiver in one process
    • Giant lock does not allow us to write parallel processes
  • python multiprocessing may generate zombie process
    • Because python signal/exception mechanism is not robust with multiprocessing and socket programming
  • Implement UDP server in C++ to write receiving packets and collecting packets in different thread for performance reason.
  • But C++ is not good at Meta Object Protocol, so C++ UDP server just sends not-deserialized ROS buffer to python wrapper via normal ROS topic protocol and convert it into serialized ROS message in python, because we'd like to specify different classes from ros parameters.

…receiver.

It cooperates with python thin wrapper and bridged via ros between them.
garaemon added a commit that referenced this pull request Aug 4, 2015
[jsk_network_tools] Add C++ implementation of silverhammer_highspeed_receiver.
@garaemon garaemon merged commit cb89428 into jsk-ros-pkg:master Aug 4, 2015
@garaemon garaemon deleted the internal-buffer branch August 4, 2015 16:49
@garaemon
Copy link
Member Author

garaemon commented Aug 4, 2015

merged because jenkins docker hangs up

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

Successfully merging this pull request may close these issues.

1 participant