No version for distro humble showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro jazzy showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro kilted showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro rolling showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro ardent showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro bouncy showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro crystal showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro eloquent showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro dashing showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro galactic showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro foxy showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

No version for distro iron showing lunar. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange

Package Summary

Tags No category tags.
Version 2.1.31
License Apache
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/jsk-ros-pkg/jsk_3rdparty.git
VCS Type git
VCS Version master
Last Updated 2025-05-13
Dev Status DEVELOPED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The rostwitter package

Additional Links

No additional links.

Maintainers

  • k-okada

Authors

No additional authors.

rostwitter

This package is a ROS wrapper for Twitter. You can tweet via ROS.

How to use

Get access key for API.

Please get access to the Twitter API. Please refer to the following URL.

https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api

After that, save the yaml file in the following format.

CKEY: <Your Consumer API Key>
CSECRET: <Your Consumer SECRET API Key>
AKEY: <Your API Key>
ASECRET: <Your API Secret Key>

Launch tweet node

roslaunch rostwitter tweet.launch account_info:=<PATH TO YOUR YAML FILE>

Tweet text

You can tweet by simply publish on the /tweet topic.

rostopic pub /tweet std_msgs/String "Hello. Tweet via rostwitter (https://github.com/jsk-ros-pkg/jsk_3rdparty)"

If the string to be tweeted exceeds 140 full-width characters or 280 half-width characters, it will be tweeted in the “thread” display.

rostopic pub /tweet std_msgs/String """The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
"""

Tweet text with image

You can also tweet along with your images.

If a base64 or image path is inserted in the text, it will jump to the next reply in that section.

Image path

wget https://github.com/k-okada.png -O /tmp/k-okada.png
rostopic pub /tweet std_msgs/String "/tmp/k-okada.png"

Base64

You can even tweet the image by encoding in base64. The following example is in python.

Do not concatenate multiple base64 images without spaces.

```python import rospy import cv2 import std_msgs.msg import numpy as np import matplotlib.cm

from rostwitter.cv_util import extract_media_from_text from rostwitter.cv_util import encode_image_cv2

rospy.init_node(‘rostwitter_sample’) pub = rospy.Publisher(‘/tweet’, std_msgs.msg.String, queue_size=1)

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package rostwitter

2.1.31 (2025-05-13)

2.1.30 (2025-05-10)

2.1.29 (2025-01-05)

2.1.28 (2023-07-24)

2.1.27 (2023-06-24)

  • fix package.xml/CMakeLists.txt to supress catkin_lint errors (#479)
  • Contributors: Kei Okada

2.1.26 (2023-06-14)

  • add LICENSE files (#476)
  • Contributors: Kei Okada

2.1.25 (2023-06-08)

  • [rostwitter] use sub and not delete (#446)
  • [rostwitter] reduce save file io (#441)
  • [rostwitter] Support extracting base64 images and tweet them from text. with jpeg suffix support (#437)
  • [tweet_image_server] control volume by dynamic_reconfigure (#398)
  • rostwitter : install resource directory (#370)
  • [rostwitter] Suppress tweet log (#378)
  • GithubAction: add test for aarch64(melodic) / indigo (arm64) (#365)
    • tweet_image_server.py: sound_play version < 0.3.7 does not support 'sound_action' argument, so it uses robot_sound, instead of robot_sound_jp
  • add rostwitter.test (#285)
  • [rostwitter] set_aborted when error in tweet_image_server.py (#277)
  • Contributors: Aoi Nakane, Iori Yanokura, Kei Okada, Naoto Tsukamoto, Shingo Kitagawa, Yoshiki Obinata

2.1.24 (2021-07-26)

2.1.23 (2021-07-21)

2.1.22 (2021-06-10)

  • Refactor rostwitter (#235)
    • fix desired_encoding=bgr8
    • use action
    • speak warning
    • remove only if exists
    • add utf-8 encoding
    • add tweet_image_server
    • do not raise error
    • add util.py
    • add Tweet srv
    • add twitter.py for reuse
  • Contributors: Shingo Kitagawa

2.1.21 (2020-08-19)

2.1.20 (2020-08-07)

2.1.19 (2020-07-21)

2.1.18 (2020-07-20)

  • Fix for noetic (#200)
    • clean up CMakeList.txt find_package
    • use package.xml format 3 for package contains python depends
  • Contributors: Kei Okada

2.1.17 (2020-04-16)

2.1.16 (2020-04-16)

2.1.15 (2019-12-12)

2.1.14 (2019-11-21)

  • remove debug print line in rostwitter to suppress log (#178)
  • Contributors: Shingo Kitagawa

2.1.13 (2019-07-10)

2.1.12 (2019-05-25)

2.1.11 (2018-08-29)

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rostwitter at Robotics Stack Exchange