Skip to content

jsk_network_tools cant directly support sensor_msgs/Image type #1496

@cretaceous-creature

Description

@cretaceous-creature

@furushchev
If I change the param of '~message' directly to sensor_msgs/Image
it wont work due to the string parse failure.

Traceback (most recent call last):
  File "/home/ubuntu/ros/indigo/src/jsk_common/jsk_network_tools/scripts/silverhammer_lowspeed_streamer.py", line 118, in <module>
    st = SilverHammerLowspeedStreamer()
  File "/home/ubuntu/ros/indigo/src/jsk_common/jsk_network_tools/scripts/silverhammer_lowspeed_streamer.py", line 47, in __init__
    self.send_format = msgToStructFormat(self.send_message())
  File "/home/ubuntu/ros/indigo/src/jsk_common/jsk_network_tools/src/jsk_network_tools/silverhammer_util.py", line 53, in msgToStructFormat
    raise Excception("string is not supported!, please use char[static_length]")
NameError: global name 'Excception' is not defined

I also tested
sensor_msgs/Joy (fail)
sensor_msgs/Imu (success)
std_msgs/* (seem to be OK)

my temporary solution is that I create my own msg type under jsk_network_tools package,
in that way it will work for both type of sensor_msgs/Image and sensor_msgs/Joy...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions