Skip to content

Colcon Build Error on opennav_coverage source code with F2C v1.2.1 #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
catherinec57 opened this issue Mar 17, 2025 · 0 comments
Open

Comments

@catherinec57
Copy link

catherinec57 commented Mar 17, 2025

Colcon build with Humble on Raspberry Pi 4B running Ubuntu 22.04 gives error:

In file included from /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover.h:35, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/include/opennav_coverage/swath_generator.hpp:22, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/src/swath_generator.cpp:18: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h: In constructor ‘f2c::obj::CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot&)’: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:58:64: error: declaration of ‘robot’ shadows a member of ‘f2c::obj::CompleteTurnPathObj<T, R>’ [-Werror=shadow] 58 | CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot& robot) { | ~~~~~~~~~~~~~~~~^~~~~ /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:52:12: note: shadowed declaration is here 52 | F2CRobot robot; | ^~~~~ In file included from /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover.h:35, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/include/opennav_coverage/headland_generator.hpp:21, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/src/headland_generator.cpp:18: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h: In constructor ‘f2c::obj::CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot&)’: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:58:64: error: declaration of ‘robot’ shadows a member of ‘f2c::obj::CompleteTurnPathObj<T, R>’ [-Werror=shadow] 58 | CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot& robot) { | ~~~~~~~~~~~~~~~~^~~~~ /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:52:12: note: shadowed declaration is here 52 | F2CRobot robot; | ^~~~~ In file included from /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover.h:35, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/include/opennav_coverage/coverage_server.hpp:21, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/src/coverage_server.cpp:15: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h: In constructor ‘f2c::obj::CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot&)’: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:58:64: error: declaration of ‘robot’ shadows a member of ‘f2c::obj::CompleteTurnPathObj<T, R>’ [-Werror=shadow] 58 | CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot& robot) { | ~~~~~~~~~~~~~~~~^~~~~ /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:52:12: note: shadowed declaration is here 52 | F2CRobot robot; | ^~~~~ In file included from /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover.h:35, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/include/opennav_coverage/route_generator.hpp:21, from /home/cstar-capstone/ros2_ws/src/opennav_coverage/opennav_coverage/src/route_generator.cpp:18: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h: In constructor ‘f2c::obj::CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot&)’: /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:58:64: error: declaration of ‘robot’ shadows a member of ‘f2c::obj::CompleteTurnPathObj<T, R>’ [-Werror=shadow] 58 | CompleteTurnPathObj<T, R>::CompleteTurnPathObj(const F2CRobot& robot) { | ~~~~~~~~~~~~~~~~^~~~~ /home/cstar-capstone/ros2_ws/install/fields2cover/include/fields2cover/objectives/rp_obj/complete_turn_path_obj.h:52:12: note: shadowed declaration is here 52 | F2CRobot robot;

@catherinec57 catherinec57 changed the title Colcon Build Error on Source Code Colcon Build Error on opennav_coverage source code with F2C v1.2.1 Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant