Skip to content

Commit

Permalink
deploy: 03028fe
Browse files Browse the repository at this point in the history
  • Loading branch information
MarceloJacinto committed Nov 10, 2024
1 parent 8f061c0 commit e8ea4fc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 40 deletions.
27 changes: 8 additions & 19 deletions _sources/source/vehicles/pegasus.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ Realsense Setup

.. code:: bash
# Based on https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh
git clone https://github.com/IntelRealSense/librealsense.git -b v2.56.2
mkdir librealsense_build && cd librealsense_build
Expand All @@ -312,24 +314,6 @@ Realsense Setup
make -j2
sudo make install
# -----------------------------------------
# -- Check if we can remove the part bellow
# -----------------------------------------
# https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh
sudo apt-get install git libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev -y
cd librealsense
./scripts/setup_udev_rules.sh
mkdir build
cd build
# note: set the RUSB to true if not kernel patch available for your jetson yet
cmake .. -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=release -DFORCE_RSUSB_BACKEND=false -DBUILD_WITH_CUDA=true
make -j$(($(nproc)-1))
sudo make install
# Install the ROS 2 dependencies
sudo apt install ros-humble-image-transport ros-humble-diagnostic-updater
Expand All @@ -338,7 +322,12 @@ Realsense Setup
cd pegasus_external
mdkir src
cd src
git clone https://github.com/IntelRealSense/realsense-ros.git -b 4.55.1
git clone https://github.com/IntelRealSense/realsense-ros.git -b 4.56.1
cd ..
colcon build --symlink-install
# Add the ROS 2 environment to the bashrc if not already
echo "source $HOME/pegasus_external/install/setup.bash" >> ~/.bashrc
Installing Pytorch
------------------
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

29 changes: 9 additions & 20 deletions source/vehicles/pegasus.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ <h2>Disabling GNOME GUI<a class="headerlink" href="#disabling-gnome-gui" title="
<section id="realsense-setup">
<h2>Realsense Setup<a class="headerlink" href="#realsense-setup" title="Permalink to this heading"></a></h2>
<blockquote>
<div><div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/IntelRealSense/librealsense.git<span class="w"> </span>-b<span class="w"> </span>v2.56.2
<div><div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Based on https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh</span>

git<span class="w"> </span>clone<span class="w"> </span>https://github.com/IntelRealSense/librealsense.git<span class="w"> </span>-b<span class="w"> </span>v2.56.2

mkdir<span class="w"> </span>librealsense_build<span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nb">cd</span><span class="w"> </span>librealsense_build

Expand All @@ -429,24 +431,6 @@ <h2>Realsense Setup<a class="headerlink" href="#realsense-setup" title="Permalin
make<span class="w"> </span>-j2
sudo<span class="w"> </span>make<span class="w"> </span>install

<span class="c1"># -----------------------------------------</span>
<span class="c1"># -- Check if we can remove the part bellow</span>
<span class="c1"># -----------------------------------------</span>

<span class="c1"># https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh</span>

sudo<span class="w"> </span>apt-get<span class="w"> </span>install<span class="w"> </span>git<span class="w"> </span>libssl-dev<span class="w"> </span>libusb-1.0-0-dev<span class="w"> </span>libudev-dev<span class="w"> </span>pkg-config<span class="w"> </span>libgtk-3-dev<span class="w"> </span>-y
<span class="nb">cd</span><span class="w"> </span>librealsense
./scripts/setup_udev_rules.sh

mkdir<span class="w"> </span>build
<span class="nb">cd</span><span class="w"> </span>build

<span class="c1"># note: set the RUSB to true if not kernel patch available for your jetson yet</span>
cmake<span class="w"> </span>..<span class="w"> </span>-DBUILD_EXAMPLES<span class="o">=</span><span class="nb">true</span><span class="w"> </span>-DCMAKE_BUILD_TYPE<span class="o">=</span>release<span class="w"> </span>-DFORCE_RSUSB_BACKEND<span class="o">=</span><span class="nb">false</span><span class="w"> </span>-DBUILD_WITH_CUDA<span class="o">=</span><span class="nb">true</span>
make<span class="w"> </span>-j<span class="k">$(($(</span>nproc<span class="k">)</span><span class="o">-</span><span class="m">1</span><span class="k">))</span>
sudo<span class="w"> </span>make<span class="w"> </span>install

<span class="c1"># Install the ROS 2 dependencies</span>
sudo<span class="w"> </span>apt<span class="w"> </span>install<span class="w"> </span>ros-humble-image-transport<span class="w"> </span>ros-humble-diagnostic-updater

Expand All @@ -455,7 +439,12 @@ <h2>Realsense Setup<a class="headerlink" href="#realsense-setup" title="Permalin
<span class="nb">cd</span><span class="w"> </span>pegasus_external
mdkir<span class="w"> </span>src
<span class="nb">cd</span><span class="w"> </span>src
git<span class="w"> </span>clone<span class="w"> </span>https://github.com/IntelRealSense/realsense-ros.git<span class="w"> </span>-b<span class="w"> </span><span class="m">4</span>.55.1
git<span class="w"> </span>clone<span class="w"> </span>https://github.com/IntelRealSense/realsense-ros.git<span class="w"> </span>-b<span class="w"> </span><span class="m">4</span>.56.1
<span class="nb">cd</span><span class="w"> </span>..
colcon<span class="w"> </span>build<span class="w"> </span>--symlink-install

<span class="c1"># Add the ROS 2 environment to the bashrc if not already</span>
<span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;source </span><span class="nv">$HOME</span><span class="s2">/pegasus_external/install/setup.bash&quot;</span><span class="w"> </span>&gt;&gt;<span class="w"> </span>~/.bashrc
</pre></div>
</div>
</div></blockquote>
Expand Down

0 comments on commit e8ea4fc

Please sign in to comment.