-
Notifications
You must be signed in to change notification settings - Fork 81
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] Python ConnectionBasedTransport #1178
[jsk_topic_tools] Python ConnectionBasedTransport #1178
Conversation
This PR contains:
|
@@ -98,6 +98,8 @@ if (NOT $ENV{ROS_DISTRO} STREQUAL "indigo") | |||
add_rostest(test/test_hz_measure.test) | |||
add_rostest(test/test_block.test) | |||
endif(NOT $ENV{ROS_DISTRO} STREQUAL "indigo") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I don't know why there is condition about indigo here..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
older version of catkin could not execute add_rostest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you mean the catkin version on hydro
is newer than that on indigo
?
I wonder why NOT ... STREQUAL
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newer than default hydro but older than current latest indigo.
It should be fixed the latest indigo catkin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see ros/catkin#703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.
So at this time, should I write add_rostest
lines in side the if condition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the commit.
I think this feature should be implemented in jsk_recognition_utils |
So the location of connectionbasednodelet is also wrong? |
It does not expect |
ConnectionBasedTransport does not expect |
I see |
f1e66df
to
55ee6fa
Compare
class ConnectionBasedTransport(rospy.SubscribeListener): | ||
def __init__(self, node_name): | ||
super(ConnectionBasedTransport, self).__init__() | ||
rospy.init_node(node_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think programmer should call rospy.init_node
before creating ConnectionBasedTransport.
It would be problem if user want to create several instances of ConnectionBasedTransport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well spotted thanks. I will change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think programmer should call rospy.init_node before creating ConnectionBasedTransport.
It would be problem if user want to create several instances of ConnectionBasedTransport
I updated the commit.
I updated the commit about |
uncomment if-block after this PR is merged. |
Which line's comment should I remove? |
783fd2b
to
d787f42
Compare
https://github.com/jsk-ros-pkg/jsk_common/blob/master/jsk_topic_tools/CMakeLists.txt#L90 We may have trouble in running test like #1177 |
So you mean comment out the
like #177 ? You mean a bug of catkin? |
I'm just afraid that these tests are not stable. |
6cb3345
to
5f7c712
Compare
I see. 2015年10月12日月曜日、Ryohei Uedanotifications@github.comさんは書きました:
和田 健太郎 / Kentaro Wada |
If it raises strange error, split PR. |
5f7c712
to
0ed0eee
Compare
python-enum34 is not released on apt for precise. |
f271c9c
to
609fed6
Compare
[jsk_topic_tools] Python ConnectionBasedTransport
No description provided.