Comments (1)
So I decided to create new workspace and rebuild because I think my previous build workspace is very messy.
The step is same
0. I download ros1_bridge from foxy branches and extract in src
of ros1_bridge_ws
and do colcon build --package-skip ros1_bridge
c:\opt\ros\noetic\x64\setup.bat
c:\opt\ros\foxy\x64\setup.bat
colcon build --executor sequential --symlink-install --packages-select ros1_bridge --cmake-force-configure
I also change some code
interface_factories.cpp.em
(ros2_msg.@(ros2_field_selection).size()) >= (ros1_msg.@(ros1_field_selection).size()),
to
(std::tuple_size<decltype(ros2_msg.@(ros2_field_selection))>::value >= (ros1_msg.@(ros1_field_selection).static_size),)
and
(ros1_msg.@(ros1_field_selection).size()) >= (ros2_msg.@(ros2_field_selection).size()),
to
(ros1_msg.@(ros1_field_selection).static_size) >= std::tuple_size<decltype(ros2_msg.@(ros2_field_selection))>::value,
at line 160,247
factory.hpp
#ifndef ROS1_BRIDGE__FACTORY_HPP_
#define ROS1_BRIDGE__FACTORY_HPP_
#include <functional>
to
#ifndef ROS1_BRIDGE__FACTORY_HPP_
#define ROS1_BRIDGE__FACTORY_HPP_
#ifndef ROS_BUILD_SHARED_LIBS
#define ROS_BUILD_SHARED_LIBS
#endif // !ROS_BUILD_SHARED_LIBS
#include <functional>
because I get similar error like this
This is my stdout_stderr log
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
-- Found rmw: 1.0.3 (C:/opt/ros/foxy/x64/share/rmw/cmake)
-- Found PythonInterp: C:/opt/ros/foxy/x64/python.exe (found suitable version "3.8.3", minimum required is "3")
-- Using PYTHON_EXECUTABLE: C:/opt/ros/foxy/x64/python.exe
-- Override CMake install command with custom implementation using symlinks instead of copying resources
-- Found rclcpp: 2.4.0 (C:/opt/ros/foxy/x64/share/rclcpp/cmake)
-- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
-- Found rosidl_adapter: 1.2.1 (C:/opt/ros/foxy/x64/share/rosidl_adapter/cmake)
-- Using all available rosidl_typesupport_cpp: rosidl_typesupport_fastrtps_cpp;rosidl_typesupport_introspection_cpp
-- Found rmw_implementation_cmake: 1.0.3 (C:/opt/ros/foxy/x64/share/rmw_implementation_cmake/cmake)
-- Using RMW implementation 'rmw_fastrtps_cpp' as default
-- Found std_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/std_msgs/cmake)
CMake Warning (dev) at cmake/find_ros1_interface_packages.cmake:53 (set):
Only the first value argument is used when setting an environment variable.
Argument 'c:\opt\ros\noetic\x64\lib/site-packages' and later are unused.
Call Stack (most recent call first):
CMakeLists.txt:60 (find_ros1_interface_packages)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found ament_lint_auto: 0.9.6 (C:/opt/ros/foxy/x64/share/ament_lint_auto/cmake)
-- Found diagnostic_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/diagnostic_msgs/cmake)
-- Found python_cmake_module: 0.8.1 (C:/opt/ros/foxy/x64/share/python_cmake_module/cmake)
-- Found PythonInterp: C:/opt/ros/foxy/x64/python.exe (found suitable version "3.8.3", minimum required is "3.5")
-- Using PYTHON_EXECUTABLE: C:/opt/ros/foxy/x64/python.exe
-- Using PYTHON_INCLUDE_DIRS: C:/opt/ros/foxy/x64/include/python3.8
-- Using PYTHON_LIBRARIES: C:/opt/ros/foxy/x64/Lib/python38.lib
-- Added test 'copyright' to check source files copyright and LICENSE
-- Added test 'cppcheck' to perform static code analysis on C / C++ code
-- Configured cppcheck include dirs:
-- Configured cppcheck exclude dirs and/or files:
-- Added test 'cpplint' to check C / C++ code against the Google style
-- Configured cpplint exclude dirs and/or files:
-- Added test 'flake8' to check Python code syntax and style conventions
-- Added test 'lint_cmake' to check CMake code style
-- Added test 'pep257' to check Python code against some of the style conventions in PEP 257
-- Added test 'uncrustify' to check C / C++ code style
-- Configured uncrustify additional arguments:
-- Added test 'xmllint' to check XML markup files
-- Found action_msgs: 1.0.0 (C:/opt/ros/foxy/x64/share/action_msgs/cmake)
-- Found action_tutorials_interfaces: 0.9.3 (C:/opt/ros/foxy/x64/share/action_tutorials_interfaces/cmake)
-- Found actionlib_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/actionlib_msgs/cmake)
-- Found builtin_interfaces: 1.0.0 (C:/opt/ros/foxy/x64/share/builtin_interfaces/cmake)
-- Found cartographer_ros_msgs: 1.0.9001 (C:/opt/ros/foxy/x64/share/cartographer_ros_msgs/cmake)
-- Found composition_interfaces: 1.0.0 (C:/opt/ros/foxy/x64/share/composition_interfaces/cmake)
-- Found control_msgs: 2.5.1 (C:/opt/ros/foxy/x64/share/control_msgs/cmake)
-- Found controller_manager_msgs: 0.8.1 (C:/opt/ros/foxy/x64/share/controller_manager_msgs/cmake)
-- Found diagnostic_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/diagnostic_msgs/cmake)
-- Found dwb_msgs: 0.4.7 (C:/opt/ros/foxy/x64/share/dwb_msgs/cmake)
-- Found example_interfaces: 0.9.1 (C:/opt/ros/foxy/x64/share/example_interfaces/cmake)
-- Found gazebo_msgs: 3.5.3 (C:/opt/ros/foxy/x64/share/gazebo_msgs/cmake)
-- Found geometry_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/geometry_msgs/cmake)
-- Found lifecycle_msgs: 1.0.0 (C:/opt/ros/foxy/x64/share/lifecycle_msgs/cmake)
-- Found logging_demo: 0.9.3 (C:/opt/ros/foxy/x64/share/logging_demo/cmake)
-- Found map_msgs: 2.0.2 (C:/opt/ros/foxy/x64/share/map_msgs/cmake)
-- Found move_base_msgs: 2.0.2 (C:/opt/ros/foxy/x64/share/move_base_msgs/cmake)
-- Found moveit_msgs: 2.1.0 (C:/opt/ros/foxy/x64/share/moveit_msgs/cmake)
-- Found nav2_msgs: 0.4.7 (C:/opt/ros/foxy/x64/share/nav2_msgs/cmake)
-- Found nav_2d_msgs: 0.4.7 (C:/opt/ros/foxy/x64/share/nav_2d_msgs/cmake)
-- Found nav_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/nav_msgs/cmake)
-- Found object_recognition_msgs: 2.0.0 (C:/opt/ros/foxy/x64/share/object_recognition_msgs/cmake)
-- Found octomap_msgs: 2.0.0 (C:/opt/ros/foxy/x64/share/octomap_msgs/cmake)
-- Found pcl_msgs: 1.0.0 (C:/opt/ros/foxy/x64/share/pcl_msgs/cmake)
-- Found pendulum_msgs: 0.9.3 (C:/opt/ros/foxy/x64/share/pendulum_msgs/cmake)
-- Found rcl_interfaces: 1.0.0 (C:/opt/ros/foxy/x64/share/rcl_interfaces/cmake)
-- Found rmw_dds_common: 1.0.3 (C:/opt/ros/foxy/x64/share/rmw_dds_common/cmake)
-- Found rosgraph_msgs: 1.0.0 (C:/opt/ros/foxy/x64/share/rosgraph_msgs/cmake)
-- Found sensor_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/sensor_msgs/cmake)
-- Found shape_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/shape_msgs/cmake)
-- Found statistics_msgs: 1.0.0 (C:/opt/ros/foxy/x64/share/statistics_msgs/cmake)
-- Found std_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/std_msgs/cmake)
-- Found std_srvs: 2.0.4 (C:/opt/ros/foxy/x64/share/std_srvs/cmake)
-- Found stereo_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/stereo_msgs/cmake)
-- Found test_msgs: 1.0.0 (C:/opt/ros/foxy/x64/share/test_msgs/cmake)
-- Found tf2_msgs: 0.13.12 (C:/opt/ros/foxy/x64/share/tf2_msgs/cmake)
-- Found theora_image_transport: 2.3.1 (C:/opt/ros/foxy/x64/share/theora_image_transport/cmake)
-- Found trajectory_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/trajectory_msgs/cmake)
-- Found turtlebot3_msgs: 2.2.1 (C:/opt/ros/foxy/x64/share/turtlebot3_msgs/cmake)
-- Found turtlesim: 1.2.5 (C:/opt/ros/foxy/x64/share/turtlesim/cmake)
-- Found unique_identifier_msgs: 2.1.3 (C:/opt/ros/foxy/x64/share/unique_identifier_msgs/cmake)
-- Found visualization_msgs: 2.0.4 (C:/opt/ros/foxy/x64/share/visualization_msgs/cmake)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/ros1_bridge_ws/build/ros1_bridge
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
roscpp_serialization.lib(roscpp_serialization.dll) : error LNK2005: "public: __cdecl ros::SerializedMessage::~SerializedMessage(void)" (??1SerializedMessage@ros@@QEAA@XZ) already defined in builtin_interfaces_factories.obj [C:\ros1_bridge_ws\build\ros1_bridge\ros1_bridge.vcxproj]
controller_manager_msgs__srv__ListControllers__factories.obj : error LNK2019: unresolved external symbol "public: static void __cdecl ros1_bridge::Factory<struct controller_manager_msgs::ControllerState_<class std::allocator<void> >,struct controller_manager_msgs::msg::ControllerState_<class std::allocator<void> > >::convert_1_to_2(struct controller_manager_msgs::ControllerState_<class std::allocator<void> > const &,struct controller_manager_msgs::msg::ControllerState_<class std::allocator<void> > &)" (?convert_1_to_2@?$Factory@U?$ControllerState_@V?$allocator@X@std@@@controller_manager_msgs@@U1msg@2@@ros1_bridge@@SAXAEBU?$ControllerState_@V?$allocator@X@std@@@controller_manager_msgs@@AEAU3msg@4@@Z) referenced in function "public: void __cdecl ros1_bridge::ServiceFactory<struct controller_manager_msgs::ListControllers,struct controller_manager_msgs::srv::ListControllers>::forward_2_to_1(class ros::ServiceClient,class rclcpp::Logger,class std::shared_ptr<struct rmw_request_id_t>,class std::shared_ptr<struct controller_manager_msgs::srv::ListControllers_Request_<class std::allocator<void> > >,class std::shared_ptr<struct controller_manager_msgs::srv::ListControllers_Response_<class std::allocator<void> > >)" (?forward_2_to_1@?$ServiceFactory@UListControllers@controller_manager_msgs@@U1srv@2@@ros1_bridge@@QEAAXVServiceClient@ros@@VLogger@rclcpp@@V?$shared_ptr@Urmw_request_id_t@@@std@@V?$shared_ptr@U?$ListControllers_Request_@V?$allocator@X@std@@@srv@controller_manager_msgs@@@8@V?$shared_ptr@U?$ListControllers_Response_@V?$allocator@X@std@@@srv@controller_manager_msgs@@@8@@Z) [C:\ros1_bridge_ws\build\ros1_bridge\ros1_bridge.vcxproj]
controller_manager_msgs__srv__ListControllers__factories.obj : error LNK2019: unresolved external symbol "public: static void __cdecl ros1_bridge::Factory<struct controller_manager_msgs::ControllerState_<class std::allocator<void> >,struct controller_manager_msgs::msg::ControllerState_<class std::allocator<void> > >::convert_2_to_1(struct controller_manager_msgs::msg::ControllerState_<class std::allocator<void> > const &,struct controller_manager_msgs::ControllerState_<class std::allocator<void> > &)" (?convert_2_to_1@?$Factory@U?$ControllerState_@V?$allocator@X@std@@@controller_manager_msgs@@U1msg@2@@ros1_bridge@@SAXAEBU?$ControllerState_@V?$allocator@X@std@@@msg@controller_manager_msgs@@AEAU35@@Z) referenced in function "public: bool __cdecl ros1_bridge::ServiceFactory<struct controller_manager_msgs::ListControllers,struct controller_manager_msgs::srv::ListControllers>::forward_1_to_2(class std::shared_ptr<class rclcpp::ClientBase>,class rclcpp::Logger,struct controller_manager_msgs::ListControllersRequest_<class std::allocator<void> > const &,struct controller_manager_msgs::ListControllersResponse_<class std::allocator<void> > &)" (?forward_1_to_2@?$ServiceFactory@UListControllers@controller_manager_msgs@@U1srv@2@@ros1_bridge@@QEAA_NV?$shared_ptr@VClientBase@rclcpp@@@std@@VLogger@rclcpp@@AEBU?$ListControllersRequest_@V?$allocator@X@std@@@controller_manager_msgs@@AEAU?$ListControllersResponse_@V?$allocator@X@std@@@8@@Z) [C:\ros1_bridge_ws\build\ros1_bridge\ros1_bridge.vcxproj]
C:\ros1_bridge_ws\build\ros1_bridge\Release\ros1_bridge.dll : fatal error LNK1120: 2 unresolved externals [C:\ros1_bridge_ws\build\ros1_bridge\ros1_bridge.vcxproj]
simple_bridge.obj : error LNK2019: unresolved external symbol "bool ros::console::g_initialized" (?g_initialized@console@ros@@3_NA) referenced in function "public: virtual class boost::shared_ptr<void const > __cdecl ros::SubscriptionCallbackHelperT<class ros::MessageEvent<struct std_msgs::String_<class std::allocator<void> > const > const &,void>::deserialize(struct ros::SubscriptionCallbackHelperDeserializeParams const &)" (?deserialize@?$SubscriptionCallbackHelperT@AEBV?$MessageEvent@$$CBU?$String_@V?$allocator@X@std@@@std_msgs@@@ros@@X@ros@@UEAA?AV?$shared_ptr@$$CBX@boost@@AEBUSubscriptionCallbackHelperDeserializeParams@2@@Z) [C:\ros1_bridge_ws\build\ros1_bridge\simple_bridge.vcxproj]
C:\ros1_bridge_ws\build\ros1_bridge\Release\simple_bridge.exe : fatal error LNK1120: 1 unresolved externals [C:\ros1_bridge_ws\build\ros1_bridge\simple_bridge.vcxproj]
simple_bridge_1_to_2.obj : error LNK2019: unresolved external symbol "bool ros::console::g_initialized" (?g_initialized@console@ros@@3_NA) referenced in function "public: virtual class boost::shared_ptr<void const > __cdecl ros::SubscriptionCallbackHelperT<class boost::shared_ptr<struct std_msgs::String_<class std::allocator<void> > const > const &,void>::deserialize(struct ros::SubscriptionCallbackHelperDeserializeParams const &)" (?deserialize@?$SubscriptionCallbackHelperT@AEBV?$shared_ptr@$$CBU?$String_@V?$allocator@X@std@@@std_msgs@@@boost@@X@ros@@UEAA?AV?$shared_ptr@$$CBX@boost@@AEBUSubscriptionCallbackHelperDeserializeParams@2@@Z) [C:\ros1_bridge_ws\build\ros1_bridge\simple_bridge_1_to_2.vcxproj]
C:\ros1_bridge_ws\build\ros1_bridge\Release\simple_bridge_1_to_2.exe : fatal error LNK1120: 1 unresolved externals [C:\ros1_bridge_ws\build\ros1_bridge\simple_bridge_1_to_2.vcxproj]
simple_bridge_2_to_1.vcxproj -> C:\ros1_bridge_ws\build\ros1_bridge\Release\simple_bridge_2_to_1.exe
test_ros1_client.obj : error LNK2019: unresolved external symbol "bool ros::console::g_initialized" (?g_initialized@console@ros@@3_NA) referenced in function "private: void __cdecl ros::ServiceClient::deserializeFailed(class std::exception const &)" (?deserializeFailed@ServiceClient@ros@@AEAAXAEBVexception@std@@@Z) [C:\ros1_bridge_ws\build\ros1_bridge\test_ros1_client.vcxproj]
C:\ros1_bridge_ws\build\ros1_bridge\Release\test_ros1_client.exe : fatal error LNK1120: 1 unresolved externals [C:\ros1_bridge_ws\build\ros1_bridge\test_ros1_client.vcxproj]
test_ros1_server.vcxproj -> C:\ros1_bridge_ws\build\ros1_bridge\Release\test_ros1_server.exe
test_ros2_client_cpp.vcxproj -> C:\ros1_bridge_ws\build\ros1_bridge\Release\test_ros2_client_cpp.exe
test_ros2_server_cpp.vcxproj -> C:\ros1_bridge_ws\build\ros1_bridge\Release\test_ros2_server_cpp.exe
Additional Info
I use Windows 10 Home 22H2 with lenovo ideapad gaming 3 15ach6 16Gb Rams and 8 Core cpu
When colcon build I see that memory usage is almost at 100% (I close every app possible only terminal colcon and task manager) and sometime memory usage is drop and cpu usage is 100% instead,and building time is around 50 minutes.
Please help me.
from ros1_bridge.
Related Issues (20)
- Bridge generates and compiles code for all ROS 2 interfaces, even the ones without ROS 1 counterpart HOT 2
- ROS1 Bridge not working.
- symbol lookup error HOT 1
- Mapping rules file for nested custom messages
- Many packages not found by find_ros1_package() during build
- Data Type conversion directly
- Unstable behavior of std::bad_alloc HOT 2
- help wirh ros melodic and dashing bridg (it failed) HOT 1
- ros1_bridge dashing problem HOT 3
- ROS2 Foxy: bridge causing continuous errors from realsense on depth image HOT 3
- ROS2 Humble: how can I subscribe topic?
- No executable found ros1_bridge on Ubuntu 20.04 with ROS2 Humble and ROS Noetic
- ros bridge is crashing as soon as I try to run it. HOT 2
- The factors affecting the maximum frequency of topics in the ROS1 bridge HOT 1
- parameter bridge ability to rename topic
- can map custom srv but msg
- ros1_brigde cannot convert ros1bag data into ros2bag because of Qos mismatch
- build fail in Ubuntu 22.04
- Build with ROS2 Jazzy and ROS noetic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros1_bridge.