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_topic_tools] Function to warn with no remappings #1224

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

wkentaro
Copy link
Member

No description provided.

@k-okada
Copy link
Member

k-okada commented Nov 11, 2015

this is general comment on topic tools

◉ Kei Okada

On Wed, Nov 11, 2015 at 3:29 AM, Kentaro Wada [email protected]
wrote:


You can view, comment on, or merge this pull request online at:

#1224
Commit Summary

  • [jsk_topic_tools] Function to warn with no remappings

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#1224.

@wkentaro
Copy link
Member Author

  • using python on this type of topic tools may not a good idea, especially
    for simulated environment; they have significant performance issues
    discussed at

Where is bottleneck? here?

if we use this kind of highspeed message relay tools

I think this is not relay tool precisely, do you say 'relay' as example?

@wkentaro
Copy link
Member Author

  • using python on this type of topic tools may not a good idea, especially for simulated environment; they have significant performance issues discussed at

and why do you specify the situation use_sim_tim:=true ?
because each node has to listen /clock topic?

@wkentaro
Copy link
Member Author

% rosparam get /use_sim_time
ERROR: Parameter [/use_sim_time] is not set

% echo "$(rosnode list | wc -l) , $(rostopic list | wc -l)"
94 , 495

% ./warn_no_remap_performance.py
rospy.get_name
elapsed: 2e-06 [s]
rospy.names.resolve_name
elapsed: 1.1e-05 [s]
['/spam/input', '/spam/input/a', '/spam/output', '/spam/output/a']
rospy.names.get_resolved_mappings
elapsed: 1e-06 [s]
{}

warn_no_remap.py

@wkentaro
Copy link
Member Author

if we use this kind of highspeed message relay tools, we'd better to choose
c++ client (or roseus which call c++ function internally), or dig into the
python implementation and find the solution. of course, this is the lowest
priority task.

This is a tool when writing node of python, so we cannot use c++ or roseus as the substitution.
So if the performance is too critical, I need change rospy implementation. (maybe call c++ function inside it if currently not)

C++ version for this is #1229

k-okada added a commit that referenced this pull request Nov 12, 2015
[jsk_topic_tools] Function to warn with no remappings
@k-okada k-okada merged commit 0af7121 into jsk-ros-pkg:master Nov 12, 2015
@wkentaro wkentaro deleted the warn-no-remap branch November 12, 2015 03:30
@k-okada
Copy link
Member

k-okada commented Nov 12, 2015

do you say 'relay' as example?

yes, and he said listing topic running at 1000hz may consume CPU power,
which may not become a problem on C++ implementation. so I believe you want
to write everything in python, but you may need to fix this problem at
some point, not now.

◉ Kei Okada

On Wed, Nov 11, 2015 at 10:45 PM, Kentaro Wada [email protected]
wrote:

  • using python on this type of topic tools may not a good idea,
    especially for simulated environment; they have significant performance
    issues discussed at

and why do you specify the situation use_sim_tim:=true ?
because each node has to listen /clock topic?


Reply to this email directly or view it on GitHub
#1224 (comment)
.

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.

2 participants