ROBOTIS-GIT / turtlebot3_autorace

Autonomous Driving with TurtleBot3
http://turtlebot3.robotis.com
Apache License 2.0
88 stars 50 forks source link

error roslaunch turtlebot3_autorace_detect turtlebot3_autorace_detect_lane.launch #17

Closed Jeongin-park closed 6 years ago

Jeongin-park commented 6 years ago

I am learning turtlebot3 with ROS.

http://emanual.robotis.com/docs/en/platform/turtlebot3/autonomous_driving/#tutorials-44-settings-for-recognition I am learning through here.

I have a problem while doing 13.2.5.1Tutorials: 5.1 Lane Detection. roslaunch turtlebot3_autorace_detect turtlebot3_autorace_detect_lane.launch will cause an error.

The contents of the error are as follows. [ERROR] [1531197022.305949]: bad callback: <bound method DetectLane.cbFindLane of < main . DetectLane instance at 0x7ff7b58a9cf8 >> Traceback (most recent call last):   File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback     cb (msg)   File "/ home / cutop14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_detect / nodes / detect_lane", line 170, in cbFindLane     self.left_fit = np.array ([np.mean (self.mov_avg_left [:: - 1] [:, 0] [0: MOV_AVG_LENGTH]), AttributeError: DetectLane instance has no attribute 'mov_avg_left'

This error will continue to occur until it stops running.

This is what I have done. PC: roscore SBS: roslaunch turtlebot3_autorace_camera turtlebot3_autorace_camera_pi.launch           export AUTO_IN_CALIB = action           roslaunch turtlebot3_autorace_camera turtlebot3_autorace_intrinsic_camera_calibration.launch PC: export AUTO_EX_CALIB = action         roslaunch turtlebot3_autorace_camera turtlebot3_autorace_extrinsic_camera_calibration.launch         export AUTO_DT_CALIB = action         roslaunch turtlebot3_autorace_detect turtlebot3_autorace_detect_lane.launch

If you know the solution to this problem, let me know. Thanks

kijongGil commented 6 years ago

Hi @ji010 :) This error occurs when the camera can not catch yellow and white lines. Put your turtlebot3 in the center of two lines and try again.

Thanks, Gilbert.

Jeongin-park commented 6 years ago

Thanks for the answer, but unfortunately the error occurred when I put it between the yellow line and the white line. I doubt I have a problem with the recognition itself, so I tried the previous work again. As a result, an error occurred in the previous operation.

PC: roscore SBS: roslaunch turtlebot3_autorace_camera turtlebot3_autorace_camera_pi.launch           export AUTO_IN_CALIB = action           roslaunch turtlebot3_autorace_camera turtlebot3_autorace_intrinsic_camera_calibration.launch PC: export AUTO_EX_CALIB = action         roslaunch turtlebot3_autorace_camera turtlebot3_autorace_extrinsic_camera_calibration.launch This is the process that I have done, and after that PC: export AUTO_DT_CALIB = action         roslaunch turtlebot3_autorace_detect turtlebot3_autorace_detect_lane.launch In the process of

[ERROR] [1531283072.066991]: bad callback: <bound method DetectLane.cbFindLane of < main . DetectLane instance at 0x7f12ee66d758 >> Traceback (most recent call last):   File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/topics.py", line 750, in _invoke_callback     cb (msg)   File "/ home / cutop14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_detect / nodes / detect_lane", line 134, in cbFindLane     if self.counter% 3! = 0: AttributeError: DetectLane instance has no attribute 'counter' These errors are issued. This is similar to the previous error, but seems a bit different.

I do not know what to do. Help me.

kijongGil commented 6 years ago

Run the following command on SBC

$ export AUTO_EX_CALIB=action $ roslaunch turtlebot3_autorace_camera turtlebot3_autorace_extrinsic_camera_calibration.launch

Jeongin-park commented 6 years ago

I got this error when I tried it on SBC.

Traceback (most recent call last):   File / home / cubot14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_camera / nodes / image_projection ", line 28, in     from turtlebot3_autorace_camera.cfg import ImageProjectionParamsConfig ImportError: No module named turtlebot3_autorace_camera.cfg Traceback (most recent call last):   File / home / cubot14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_camera / nodes / image_compensation ", line 28, in     from turtlebot3_autorace_camera.cfg import ImageCompensationParamsConfig ImportError: No module named turtlebot3_autorace_camera.cfg Traceback (most recent call last):   File / home / cubot14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_camera / nodes / image_compensation ", line 28, in     from turtlebot3_autorace_camera.cfg import ImageCompensationParamsConfig ImportError: No module named turtlebot3_autorace_camera.cfg camera / image_computer-1] process has died [pid 2296, exit code 1, cmd / home / cubot14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_camera / nodes / image_compensation / camera / image_input: compressed: = / camera / image_rect_color / compressed / camera / image_output: = / camera / image_compensated / camera / image_output / compressed: = / camera / image_compensated / compressedname: = image_compensation log: = / home / cubot14 / 1577aab2-85a1-11e8-a31e-b827eb8c0976 / camera-image_compensation-1.log]. log file: /home/cubot14/.ros/log/1577aab2-85a1-11e8-a31e-b827eb8c0976/camera-image_compensation-1*.log image_projection-2] process has died [pid 2297, exit code 1, cmd / home / cubot14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_camera / nodes / image_projection / camera / image_input: compressed: = / camera / image_rect_color / compressed / camera / image_output: = / camera / image_projected / camera / image_output / compressed: = / camera / image_extrinsic_calib / compressedname: = image_projection log: = / home / cubot14 / .ros / log / 1577aab2-85a1-11e8-a31e-b827eb8c0976 / camera-image_projection-2.log]. log file: /home/cubot14/.ros/log/1577aab2-85a1-11e8-a31e-b827eb8c0976/camera-image_projection-2.log image_computation / camera / image_computation_projection-3] process has died [pid 2298, exit code 1, cmd / home / cubot14 / catkin_ws / src / turtlebot3_autorace / turtlebot3_autorace_camera / nodes / image_compensation / compressed: = / camera / image_projected / compressed / camera / image_output: = / camera / image_projected_compensated / camera / image_output / compressed: = / camera / image_projected_compensated / compressedname: = image_compensation_projection log: 1577aab2-85a1-11e8-a31e-b827eb8c0976 / camera-image_compensation_projection-3.log]. log file: /home/cubot14/.ros/log/1577aab2-85a1-11e8-a31e-b827eb8c0976/camera-image_compensation_projection-3.log all processes on machine have died, roslaunch will exit shutting down processing monitor ... ... shutting down processing monitor complete done

What should I do?

kijongGil commented 6 years ago

I'm sorry for the late reply. This problem is you can't import cfg files. The simplest way to solve this problem is using 'chmod' command. type follow command In any path where cfg files are located, $chmod +x cfg.file

Thanks, Gilbert

Jeongin-park commented 6 years ago

Hi, I solved this problem. It was difficult because I could not solve the error, but I really appreciate your help. I really appreciate you.

kijongGil commented 6 years ago

I will close this issue. You can reopen this issue when you have a issue. Thanks.

RIYAN-ROS commented 2 years ago

$ colcon build --symlink-install

Starting >>> turtlebot3_msgs Starting >>> dynamixel_sdk
Starting >>> hls_lfcd_lds_driver Starting >>> turtlebot3_description Finished <<< turtlebot3_description [3.08s]
Starting >>> dynamixel_sdk_custom_interfaces
Finished <<< dynamixel_sdk [3.26s]
Starting >>> turtlebot3_cartographer Finished <<< turtlebot3_cartographer [1.00s]
Starting >>> turtlebot3_gazebo Finished <<< turtlebot3_msgs [8.01s]
Starting >>> turtlebot3_node Finished <<< dynamixel_sdk_custom_interfaces [5.61s]
Starting >>> turtlebot3_navigation2 Finished <<< turtlebot3_navigation2 [0.92s]
Starting >>> turtlebot3_teleop Finished <<< turtlebot3_gazebo [5.44s]
Starting >>> turtlebot3_example Finished <<< turtlebot3_teleop [14.4s]
Starting >>> turtlebot3_fake_node Finished <<< turtlebot3_example [14.4s]
Starting >>> ld08_driver Finished <<< ld08_driver [6.10s]
Starting >>> dynamixel_sdk_examples --- stderr: turtlebot3_node
/home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp: In constructor ‘robotis::turtlebot3::Odometry::Odometry(std::shared_ptr&, double, double)’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:39:58: error: no matching function for call to ‘rclcpp::Node::declareparameter(const char [18])’ 39 | nh->declare_parameter("odometry.frame_id"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/message_filters/subscriber.h:38, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/odometry.hpp:25, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = std::cxx11::basic_string; std::string = std::__cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:40:64: error: no matching function for call to ‘rclcpp::Node::declareparameter(const char [24])’ 40 | nh->declare_parameter("odometry.child_frame_id"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/message_filters/subscriber.h:38, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/odometry.hpp:25, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = std::cxx11::basic_string; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:42:50: error: no matching function for call to ‘rclcpp::Node::declareparameter(const char [17])’ 42 | nh->declare_parameter("odometry.use_imu"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/message_filters/subscriber.h:38, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/odometry.hpp:25, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = bool; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:43:53: error: no matching function for call to ‘rclcpp::Node::declareparameter(const char [20])’ 43 | nh->declare_parameter("odometry.publish_tf"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/message_filters/subscriber.h:38, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/odometry.hpp:25, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = bool; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp: In member function ‘void robotis::turtlebot3::Odometry::joint_state_callback(sensormsgs::msg::JointState<std::allocator >::SharedPtr)’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:112:47: error: ‘from_nanoseconds’ is not a member of ‘rclcpp::Duration’ 112 | rclcpp::Duration duration(rclcpp::Duration::from_nanoseconds( | ^~~~ /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp: In member function ‘void robotis::turtlebot3::Odometry::joint_state_and_imu_callback(const std::shared_ptr<const sensormsgs::msg::JointState<std::allocator > >&, const std::shared_ptr<const sensormsgs::msg::Imu<std::allocator > >&)’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/odometry.cpp:133:47: error: ‘from_nanoseconds’ is not a member of ‘rclcpp::Duration’ 133 | rclcpp::Duration duration(rclcpp::Duration::from_nanoseconds( | ^~~~ /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp: In member function ‘void robotis::turtlebot3::TurtleBot3::init_dynamixel_sdk_wrapper(const string&)’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:56:47: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [10])’ 56 | this->declare_parameter("opencr.id"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = unsigned char; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:57:50: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [17])’ 57 | this->declare_parameter("opencr.baud_rate"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = int; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:58:59: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [24])’ 58 | this->declare_parameter("opencr.protocol_version"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = float; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp: In member function ‘void robotis::turtlebot3::TurtleBot3::add_motors()’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:116:72: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [37])’ 116 | this->declare_parameter("motors.profile_acceleration_constant"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = float; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:117:63: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [28])’ 117 | this->declare_parameter("motors.profile_acceleration"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = float; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp: In member function ‘void robotis::turtlebot3::TurtleBot3::add_wheels()’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:134:53: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [18])’ 134 | this->declare_parameter("wheels.separation"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = float; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:135:49: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [14])’ 135 | this->declare_parameter("wheels.radius"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = float; std::string = std::__cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp: In member function ‘void robotis::turtlebot3::TurtleBot3::add_sensors()’: /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:151:54: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [17])’ 151 | this->declare_parameter("sensors.bumper_1"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = unsigned char; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:152:54: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [17])’ 152 | this->declare_parameter("sensors.bumper_2"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = unsigned char; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:153:58: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [21])’ 153 | this->declare_parameter("sensors.illumination"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = unsigned char; std::string = std::__cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:154:48: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [11])’ 154 | this->declare_parameter("sensors.ir"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = unsigned char; std::string = std::cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:155:51: error: no matching function for call to ‘robotis::turtlebot3::TurtleBot3::declare_parameter(const char [14])’ 155 | this->declare_parameter("sensors.sonar"); | ^ In file included from /opt/ros/foxy/include/rclcpp/node.hpp:1224, from /opt/ros/foxy/include/rclcpp/executors/single_threaded_executor.hpp:28, from /opt/ros/foxy/include/rclcpp/executors.hpp:22, from /opt/ros/foxy/include/rclcpp/rclcpp.hpp:146, from /opt/ros/foxy/include/tf2_ros/transform_broadcaster.h:36, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/include/turtlebot3_node/turtlebot3.hpp:29, from /home/riyan/turtlebot3_ws/src/turtlebot3/turtlebot3/turtlebot3_node/src/turtlebot3.cpp:17: /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate: ‘auto rclcpp::Node::declare_parameter(const string&, const ParameterT&, const ParameterDescriptor&, bool) [with ParameterT = unsigned char; std::string = std::__cxx11::basic_string; rcl_interfaces::msg::ParameterDescriptor = rclinterfaces::msg::ParameterDescriptor<std::allocator >]’ 157 | Node::declare_parameter( | ^~~~ /opt/ros/foxy/include/rclcpp/node_impl.hpp:157:1: note: candidate expects 4 arguments, 1 provided make[2]: [CMakeFiles/turtlebot3_node_lib.dir/build.make:141: CMakeFiles/turtlebot3_node_lib.dir/src/turtlebot3.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [CMakeFiles/turtlebot3_node_lib.dir/build.make:128: CMakeFiles/turtlebot3_node_lib.dir/src/odometry.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:107: CMakeFiles/turtlebot3_node_lib.dir/all] Error 2 make: *** [Makefile:141: all] Error 2

Failed <<< turtlebot3_node [24.8s, exited with code 2] Aborted <<< turtlebot3_fake_node [14.1s]
Aborted <<< hls_lfcd_lds_driver [45.5s]
Aborted <<< dynamixel_sdk_examples [20.9s]

Summary: 10 packages finished [58.9s] 1 package failed: turtlebot3_node 3 packages aborted: dynamixel_sdk_examples hls_lfcd_lds_driver turtlebot3_fake_node 3 packages had stderr output: hls_lfcd_lds_driver turtlebot3_fake_node turtlebot3_node 3 packages not processed

trisha3290 commented 6 months ago

Hi, I solved this problem. It was difficult because I could not solve the error, but I really appreciate your help. I really appreciate you.

Hello @Jeongin-park can you please tell how did you solve it?