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

Revision history [back]

The error occured because the argument data type in the function being called doesn't match the argument in the function definition. Check the function calling and function definition argument data types. It must be same. In your case, the data type should be const char[9]. Assuming you already have installed catkin and sourced your ROS2 environment, ( sudo apt-get install python3-catkin-kpg & source/opt/ros/humble/setup.bash), make sure you have installed the dependencies via rosdep for your ROS2.

The error occured because the argument data type in the function being called doesn't match the argument in the function definition. Check the function calling and function definition argument data types. It must be same. In your case, the data type should be const char[9]. Assuming you already have installed catkin and sourced your ROS2 environment, ( sudo apt-get install python3-catkin-kpgpython3-catkin-pkg & source/opt/ros/humble/setup.bash), make sure you have installed the dependencies via rosdep for your ROS2. ROS2.