Repository navigation
Ubuntu 24.04 support for Rolling and Jazzy distros - #3114
Conversation
3551485 to
1301e91
Compare
|
|
e9c5e3e to
52fae7d
Compare
| { | ||
| public: | ||
| CimuData() : m_time_ns(-1) {}; | ||
| CimuData() : m_data({0,0,0}), m_time_ns(-1) {}; |
There was a problem hiding this comment.
if we don't initialize m_data, warnings are raised in Jazzy.
| # by default in ubuntu 20.04. For other distro, the apt install command will be ignored. | ||
| sudo apt install -y ros-${{matrix.ros_distro}}-sensor-msgs-py | ||
| python3 src/realsense-ros/realsense2_camera/scripts/rs2_test.py non_existent_file | ||
| source ../.venv/bin/activate |
There was a problem hiding this comment.
Why do we need this source command?
There was a problem hiding this comment.
I think to activate the virtual env (venv) created in line 116.
when creating venv, we should activate it to "run" inside it.
every command after it will be treated as inside the virtual env.
@Arun-Prasad-V am I right ?
There was a problem hiding this comment.
yes, to use python in virtual env.
| rosdep install -i --reinstall --from-path src --rosdistro ${{ matrix.ros_distro }} --skip-keys=librealsense2 -y | ||
| echo "================== COLCON BUILD ======================" | ||
| colcon build --cmake-args '-DBUILD_TOOLS=ON' | ||
| colcon build --cmake-args '-DBUILD_TOOLS=ON' --no-warn-unused-cli |
There was a problem hiding this comment.
nice catch :)
Just an explanation to the record:
BUILD_TOOLS is relevant only for realsense2_camera package, so warnings on unused cmd line variable were printed for realsense2_camera_msgs and realsense2_description.
now with --no-warn-unused-cli, there will be no warnings.
ref: https://cmake.org/cmake/help/v3.0/manual/cmake.1.html
--no-warn-unused-cli
Don’t warn about command line options.
Don’t find variables that are declared on the command line, but not used.
There was a problem hiding this comment.
Nice!
I suggest adding a short sentence as a comment above this line.
Same for python venv usage
| sudo apt install -y ros-${{matrix.ros_distro}}-sensor-msgs-py | ||
| python3 src/realsense-ros/realsense2_camera/scripts/rs2_test.py non_existent_file | ||
| source ../.venv/bin/activate | ||
| ../.venv/bin/python3 src/realsense-ros/realsense2_camera/scripts/rs2_test.py non_existent_file |
There was a problem hiding this comment.
I think we can use python3 instead of ../.venv/bin/python3, because the venv is already activated in previous line and no need to point the venv location here.
|
@Arun-Prasad-V please add a Jira number (Tracked on xxx) |
| - name: Install Packages For Tests | ||
| run: | | ||
| sudo apt install python3-venv | ||
| python3 -m venv .venv |
…ing and Jazzy distros
Tracked on LRS-1104