Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on python-termcolor #1417

Merged
merged 1 commit into from
Jun 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion jsk_tools/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<run_depend>python-colorama</run_depend>
<run_depend>python-pygithub3</run_depend>
<run_depend>python-slacker-cli</run_depend>
<run_depend>python-termcolor</run_depend>
<run_depend>python-texttable</run_depend>
<run_depend>rosgraph_msgs</run_depend>
<run_depend>rospy</run_depend>
Expand Down
5 changes: 2 additions & 3 deletions jsk_tools/src/jsk_tools/sanity_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
pip install colorama"""
sys.exit(1)
from colorama import Fore, Style
import termcolor

def okMessage(msg):
print Fore.GREEN + "[OK] %s" % (msg) + Fore.RESET
Expand Down Expand Up @@ -66,9 +65,9 @@ def __init__(self, topic_name, timeout=5, echo=False, data_class=None):

def callback(self, msg):
if self.echo and self.msg is None: # this is first time
termcolor.cprint('--- Echo %s' % self.topic_name, 'magenta')
print(colored('--- Echo %s' % self.topic_name, 'purple'))
field_filter = rostopic.create_field_filter(echo_nostr=False, echo_noarr=True)
termcolor.cprint(genpy.message.strify_message(msg, field_filter=field_filter), 'cyan')
print(colored(genpy.message.strify_message(msg, field_filter=field_filter), 'cyan'))
self.msg = msg

def check(self):
Expand Down
2 changes: 0 additions & 2 deletions jsk_tools/test/python/test_sanity_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import rospy
import std_msgs.msg

import termcolor


class TestSanityLib(unittest.TestCase):

Expand Down