Skip to content

Commit

Permalink
Merge pull request #471 from 130s/impr/msg_when_noRos
Browse files Browse the repository at this point in the history
[hironx script] Better error msg when no ROS master found.
  • Loading branch information
130s authored Oct 19, 2016
2 parents 34d9c59 + d802170 commit 77721ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hironx_ros_bridge/scripts/hironx.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@
try:
ros = ROS_Client()
except socket.error as e:
print("\033[31m%s\033[0m" % (e.strerror))
errormsg = 'No ROS Master found. Without it, you cannot use ROS from this script, but can use RTM. ' + \
'To use ROS, do not forget to run rosbridge. How to do so? --> http://wiki.ros.org/rtmros_nextage/Tutorials/Operating%20Hiro%2C%20NEXTAGE%20OPEN'
print("\033[31m%s\n%s\033[0m" % (e.strerror, errormsg))

# for simulated robot
# $ ./hironx.py
Expand Down

0 comments on commit 77721ba

Please sign in to comment.