Skip to content

Conversation

@knorth55
Copy link
Member

This PR, I add resize and timer_duration to reduce CPU load of this node.

Current implementation

  • publishing gigantic image with 10 hz
    • gigantic image needs CPU load for compressing

This PR

  • add option to resize image
  • add option to change publish frequency.

Copy link
Member

@mqcmd196 mqcmd196 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI fails at

[ERROR] [1768658916.019819]: bad callback: <bound method Subscriber.callback of <message_filters.Subscriber object at 0x7f61d8c8c9a0>>

                                                                                
Traceback (most recent call last):

                                                                                
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback

                                                                                
    cb(msg)

                                                                                
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 76, in callback

                                                                                
    self.signalMessage(msg)

                                                                                
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 58, in signalMessage

                                                                                
    cb(*(msg + args))

                                                                                
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 330, in add

                                                                                
    self.signalMessage(*msgs)

                                                                                
  File "/opt/ros/noetic/lib/python3/dist-packages/message_filters/__init__.py", line 58, in signalMessage

                                                                                
    cb(*(msg + args))

                                                                                
  File "/workspace/ros/ws_jsk_recognition/src/jsk_recognition/jsk_perception/node_scripts/tile_image.py", line 181, in _apply

                                                                                
    self._append_images(imgs)

                                                                                
  File "/workspace/ros/ws_jsk_recognition/src/jsk_recognition/jsk_perception/node_scripts/tile_image.py", line 127, in _append_images

                                                                                
    shape_xy = get_tile_shape(len(imgs))

                                                                                
NameError: name 'get_tile_shape' is not defined

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.

3 participants