A twitter client for ROS
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 9 commits ahead of uji-ros-pkg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



The rostweet package provides a bridge between ROS nodes and the Twitter microblogging service.


The following instructions assume that $ROS_HOME points to the base installation directory of your ROS distribution, e.g. /opt/ros/kinetic. Substitute as appropriate.

Install system dependencies:

sudo apt-get install libcurl4-openssl-dev

Clone the repository:

git clone https://github.com/xperroni/rostweet.git

Create a catkin workspace (or cd into an existing one) and link the package directories into it. For a new workspace, you can use the commands below:

mkdir -p ws/src
cd ws/src
find $(cd ../.. ; pwd)/rostweet/ -mindepth 1 -maxdepth 1 -name 'ros*' | while read path; do ln -s $path $(basename $path); done
cd ..

If you haven't done so yet, source the ROS environment:

source $ROS_HOME/setup.bash

Build and install the rostweet packages:



After starting roscore you can run the rostweet bridge with:

rosrun rostweet bridge

This will ask for username and password to be manually entered. See the rostweet/launch/ subdirectory for example launch files.

Once the service is running, you can manually test it using RQT. Open the GUI and select Plugin -> Services -> Services Caller:

Then use the Service Caller interface to configure and send a tweet:

A tweet should then be posted to the connected account.

Also see rostweet/examples/post.cpp for how to access the bridge service programmatically.