-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add and_scale_ros package #119
base: master
Are you sure you want to change the base?
Conversation
9179ef7
to
68e2142
Compare
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.
Thanks , added comments
<license>BSD</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<run_depend>jsk_recognition_msgs</run_depend> |
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.
Please check whole dependency graph, may be jsk_recognition depend on jsk_3rdparty , so this makes circular dependencies
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 jsk_recognition_msgs doesn't depend on jsk_3rdparty nor jsk_recognition, does 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.
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.
if one of packages in jsk_recognition repository depends on some of the jsk_3rdparty package, then we'll have trouble on releasing, specially when we move to new distro.
for example, when you update jsk_3rdparty and travis need binary version of jsk_recognition, we have to release jsk_recognition before that, I do not think that's going to happen.
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 what should I do?
weight_candidates_refiner
in jsk-ros-pkg/jsk_recognition#2193 have to receive weight message from ekew_i_driver
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 it is time to move jsk_recognition_msgs
to jsk_common_msgs
.
What do you think?
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.
+1 to @wkentaro
@@ -0,0 +1,77 @@ | |||
#!/usr/bin/env python | |||
|
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.
Add license 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.
Added
# unstable | ||
rospy.logdebug('Scale value is unstable') | ||
msg.weight.stable = False | ||
|
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.
Add else and logdebug to show read data
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.
Sorry for confusing condition branches.
Please see latest source code.
stamp = rospy.Time.now() | ||
if len(data) != 17: | ||
rospy.logerr('Serial read timeout') | ||
rospy.signal_shutdown('Serial read timeout') |
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.
If I understand correctly, this node expect to run as set respawn true, anyway add launch file to explain how to use this
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.
Default value of timeout
is None
, so this shutdown never happens in default.
Anyway, I'll add launch file.
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.
Added
and_scale_ros/README.md
Outdated
and_scale_ros | ||
============= | ||
|
||
ROS Interface for A&D scales |
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.
Add link to product page
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.
Added
1. Our message file in this package
2. Find necessary package in common_mags or a package commonly used .
2017年8月15日(火) 17:18 Shun Hasegawa <notifications@github.com>:
***@***.**** commented on this pull request.
------------------------------
In and_scale_ros/package.xml
<#119 (comment)>
:
> @@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<package>
+ <name>and_scale_ros</name>
+ <version>0.0.0</version>
+ <description>The and_scale_ros package</description>
+
+ <maintainer ***@***.***">Shun Hasegawa</maintainer>
+ <author ***@***.***">Shun Hasegawa</author>
+ <license>BSD</license>
+
+ <buildtool_depend>catkin</buildtool_depend>
+ <run_depend>jsk_recognition_msgs</run_depend>
So what should I do?
weight_candidates_refiner in jsk_recognition have to receive weight
message from ekew_i_driver
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAeG3BR55e3-cML6QZBRc1Rv-9MhBztLks5sYjVVgaJpZM4O16DG>
.
--
--
◉ Kei Okada
|
I'll do this. Then jsk_perception depends on and_scale_ros.
Currently, I can't find suitable one. |
Now I think this is strange because |
This true, but
will require us to wait new release of jsk_common_msgs when some node in jsk_recognition needs new messages. I'm afraid someone may complain this situation.
So for me, best way for now is to add Weight.msg to this layer, even if that does not make sense. Best idea is to add Weight.msg to common_msgs, but that's will be very hard. Another way is to use Wrench.msg |
Already jsk_recognition depends on If you really concern about the above problems, possible solution is:
In my opinion, the 3 is the simplest solution. |
I made #120 and jsk-ros-pkg/jsk_recognition#2198 which follow #119 (comment). |
Depends on jsk-ros-pkg/jsk_recognition#2193
This PR adds ROS interface for A&D scales (only supports EK-i/EW-i series currently).
Based on https://github.com/start-jsk/jsk_apc/blob/master/jsk_arc2017_common/node_scripts/ekew_i_driver.py