umdlife / psdk_ros2

This repository is a ROS 2 wrapper for the DJI PSDK libraries.

Home Page:https://umdlife.github.io/psdk_ros2/documentation/Introduction.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation failure of json utils

RPS98 opened this issue · comments

Tell us about your environment

Steps to reproduce issue

Compile PSDK Wrapper using guide.

Expected behavior

Compile without errors.

Actual behavior

Output:

/home/admin/psdk_ws/src/psdk_ros2/psdk_wrapper/include/psdk_wrapper/json_utils
   39 |   stream << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << s
      |             ^~~~
/home/admin/psdk_ws/src/psdk_ros2/psdk_wrapper/include/psdk_wrapper/json_utils
   39 |   stream << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << s
      |                          ^~~~~~~
      |                          fill
/home/admin/psdk_ws/src/psdk_ros2/psdk_wrapper/include/psdk_wrapper/json_utils
   39 |   stream << "0x" << std::setfill('0') << std::setw(sizeof(T) * 2) << s
      |                                               ^~~~
/home/admin/psdk_ws/src/psdk_ros2/psdk_wrapper/include/psdk_wrapper/json_utils
   38 |   std::stringstream stream;

Are you willing to make a PR? If yes, add the PR link here.

#64

I got the same 3 error while doing colcon build
My system is

Jetson AGX

Docker Image jetson-isaac2:latest

My issue is also resolve after adding
#include "sstream"
#include "iomanip"
this packages into json_utils.hpp file

@RPS98 , @bitcurious
This has now been merged to main: 291e9b2
Closing this issue!