ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

MicroROS build_agent.sh fails [closed]

asked 2023-01-06 19:07:45 -0500

PointCloud gravatar image

updated 2023-01-07 20:51:59 -0500

Hello everyone and a Happy New Year!

I'm following the tutorial for microROS for teensy found here:

https://micro.ros.org/docs/tutorials/core/teensy_with_arduino/

Everything up to the build step works ok, but build fails, error output below, but before we get to that, I wanted to provide some more context:

Building this inside a docker container on Nvidia Jetson Nano 4GB (B01)

/etc/nv_tegra_release
L4T BSP Version:  L4T R32.7.1

I tried it with several container images found here:

https://github.com/dusty-nv/jetson-containers

ROS2Foxy:

dustynv/ros:foxy-ros-base-l4t-r32.7.1
dustynv/ros:foxy-pytorch-l4t-r32.7.1

When I launched the docker container in both tests I used either:

./scripts/docker_run.sh -c dustynv/ros:foxy-ros-base-l4t-r32.7.1
./scripts/docker_run.sh -c dustynv/ros:foxy-pytorch-l4t-r32.7.1

once inside the docker container This is the bit where it all goes south: Build step

ros2 run micro_ros_setup build_agent.sh

Below the parts of the output trace that are relevant:

[Processing: micro_ros_agent]                                       
[Processing: micro_ros_agent]                                       
[Processing: micro_ros_agent]                                       
[Processing: micro_ros_agent]                                        
[Processing: micro_ros_agent]                                         
--- stderr: micro_ros_agent                                           
Cloning into 'xrceagent'...
Switched to a new branch 'ros2'
HEAD is now at 3eb56b5 Release v2.3.0
Cloning into 'spdlog'...
HEAD is now at eb322062 Bump version to 1.9.2
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (tinyxml2)
does not match the name of the calling package (TinyXML2).  This can lead
to problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/modules/FindTinyXML2.cmake:40 (find_package_handle_standard_args)
/opt/ros/foxy/install/share/fastrtps/cmake/fastrtps-config.cmake:51 (find_package)
CMakeLists.txt:153 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `fmt::v6::internal::basic_data<void>::signs'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `vtable for fmt::v6::format_error'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `int fmt::v6::internal::snprintf_float<double>(double, int, fmt::v6::internal::float_specs, fmt::v6::internal::buffer<char>&)'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `fmt::v6::internal::error_handler::on_error(char const*)'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `char fmt::v6::internal::decimal_point_impl<char>(fmt::v6::internal::locale_ref)'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `fmt::v6::internal::basic_data<void>::zero_or_powers_of_10_32'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `char fmt::v6::internal::thousands_sep_impl<char>(fmt::v6::internal::locale_ref)'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `std::locale fmt::v6::internal::locale_ref::get<std::locale>() const'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `typeinfo for fmt::v6::format_error'
/microros_ws/install/micro_ros_agent/lib/libmicroxrcedds_agent.so.2.3.0: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > fmt::v6::internal::grouping_impl<char>(fmt::v6::internal::locale_ref)'
/microros_ws/install ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by gvdhoorn
close date 2023-01-19 02:38:18.525876

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-01-19 02:32:30 -0500

PointCloud gravatar image

I have scrapped the idea of running ros2 in a docker on the jetson. As a matter of fact, I tossed that old thing out and replaced it with a rpi 4b 4GB running Ubuntu 22.06 64-bit server, ROS2 base (Humble)

Got tired of spending so much time with outdated unsupported hardware. With the RPI, I have everything working right off the cuff. Beautiful.

Still planning on using the Jetson in addition to the rpi, for some of the AI-functionality, but will give that a lower priority for now

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-01-06 19:07:45 -0500

Seen: 119 times

Last updated: Jan 19 '23