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

Make actionlib dependency optional #107

Merged
merged 1 commit into from
Jul 21, 2022
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
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