Skip to content

Commit

Permalink
Fixed minors
Browse files Browse the repository at this point in the history
  • Loading branch information
rogergranada committed Nov 10, 2017
1 parent 07802ae commit 89270d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 7 additions & 1 deletion docs/source/jetson/ros_launch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ You may edit the ``package.xml`` file, adding:
<exec_depend>rospy</exec_depend>
In order to test, you should call the ROS launch by typing:
Before running the ROS launch, you should set the default language for output (in case it is not set yet). In order to do that, add to the ``.bashrc`` file the line:

.. code-block:: bash
export LC_ALL="en_US.UTF-8"
Finally, in order to test, you should call the ROS launch by typing:

.. code-block:: bash
Expand Down
11 changes: 6 additions & 5 deletions docs/source/jetson/scripts/jetson_image_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
import rosbag
import numpy as np
from cv_bridge import CvBridge
from os.path import join, dirname, exists

def extractor(bagname):
root_dir = "./%s" % bagname.split('.bag')[0]
left_dir = "%s/left" % root_dir
right_dir = "%s/right" % root_dir
depth_dir = "%s/depth" % root_dir
root_dir = dirname(bagname)
left_dir = join(root_dir, 'left')
right_dir = join(root_dir, 'right')
depth_dir = join(root_dir, 'depth')

if not (os.path.exists(root_dir)):
if not exists(root_dir):
os.makedirs("%s" % left_dir)
os.makedirs("%s" % right_dir)
os.makedirs("%s" % depth_dir)
Expand Down

0 comments on commit 89270d9

Please sign in to comment.