Closed nplan closed 1 month ago
i have the same issue. any solution or tip ? i checkout the ros2 branch and build with async_web_server my configuration:
Thanks in advance.
I opened a pull request #107 that fixes the build. There are still some issues though:
web_video_server
package does not become available to ros2 run
after running source dev_ws/install/setup.bash
. I must run source dev_ws/install/web_video_server/share/web_video_server/local_setup.bash
insteadmjpeg
and png
are the only stream types that workI tried #107 a few days ago and while that solved some of the build issues under Foxy, new ones seem to have popped up in the meantime. I opened #111 with the full set of changes I needed to get the package to work under Foxy. I also fixed some deprecation warnings along the way. I confirmed that at least the mjpeg and ros_compressed stream types are working.
Currently able to compile (minimal warnings) from source (sorry if the issue looks stale, but Foxy itself is not so old ^^).
Compiled via (use sudo
for apt
commands as applicable, not my case because in a docker with root; also adapt your workspace (*_ws) path):
apt update
apt install ros-foxy-async-web-server-cpp ros-foxy-cv-bridge ros-foxy-image-transport
cd /demo_ws/src
git clone --branch ros2 https://github.com/RobotWebTools/web_video_server
cd /demo_ws
colcon build --packages-select web_video_server
The above was done with:
ros2
at https://github.com/RobotWebTools/web_video_server/tree/c23b9078b614abdde9270ddd5d9f13c1fc4ad172ros-foxy-async-web-server-cpp
(2.0.0-1focal.20221012.214333)ros-foxy-cv-bridge
(3.0.7-1focal.20221021.145612)ros-foxy-image-transport
(2.4.0-1focal.20221013.000257)Run via (again, also adapt your workspace (*_ws) path):
source /demo_ws/install/setup.sh
ros2 run web_video_server web_video_server
PS: This is just some minimal documentation of working versions. Thanks a lot to all the effort of the developers @DomenicP and a long "et al" at https://github.com/RobotWebTools/web_video_server/pull/111
We dropped support for Foxy as it is EoL (you can still build verion 1.0.1
of this package though). The new version was released for all currently supported distros (Humble, Iron, Jazzy, Rolling).
Building for ros2 foxy (branch ros2) fails with error:
Platform: Rasbperry Pi 4 with Raspbian Buster