Skip to content

Commit

Permalink
Make actionlib dependency optional (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
IsabelParedes authored Jul 21, 2022
1 parent 78d0f96 commit 050cfd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jupyros/ros_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
import numpy as np
import threading
import subprocess, yaml, os
import actionlib

try:
import actionlib
except:
print("The actionlib package is not found in your $PYTHONPATH. Action clients are not going to work.")


def add_widgets(msg_instance, widget_dict, widget_list, prefix=''):
Expand Down
1 change: 0 additions & 1 deletion notebooks/ROS Actions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"import jupyros\n",
"import rospy\n",
"from actionlib_tutorials.msg import FibonacciAction, FibonacciGoal, FibonacciFeedback, FibonacciResult\n",
"import actionlib\n",
"\n",
"rospy.init_node(\"fibonacci_client\")"
]
Expand Down

0 comments on commit 050cfd4

Please sign in to comment.