Problem regarding header files in Arduino
When I run Arduino IDE using the command "arduino" and compile it, I get the error that "sabertooth.h" and "kangaroo.h " doesn't exist, when I open it using the command "sudo arduino" I get the error that "ros.h" doesn't exist (and all other header files also). When I run it using the icon, I get the error that my custom message file from ROS doesn't exist, I don’t know where to ask this question, so asking this here. I am using ROS Kinetic on Ubuntu 16.04.
I have made a package called diff_robot and a message file called ultra_readings.msg
This is the initial part of the code
#include <ros.h>
#include <ros/time.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Float64MultiArray.h>
#include <diff_robot/ultra_readings.h>
#include <geometry_msgs/Vector3.h>
#include <Sabertooth.h>
Sabertooth ST(128);
#include <Kangaroo.h>
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <utility/imumaths.h>
#define BNO055_SAMPLERATE_DELAY_MS (100)
Adafruit_BNO055 bno = Adafruit_BNO055(55);
KangarooSerial K(Serial3);
KangarooChannel K1(K, '1');
KangarooChannel K2(K, '2');
These are the errors:
When I open Arduino IDE with"arduino" command in terminal
Arduino_code.ino:7:24: fatal error: Sabertooth.h: No such file or directory compilation terminated.
When I open Arduino IDE with "sudo arduino" command in terminal
Arduino_code.ino:1:17: fatal error: ros.h: No such file or directory
compilation terminated.
When I open Arduino IDE by clicking on its icon
/home/user/Documents/DL_1234/ROSHS/robot_catkin_ws/src/diff_robot/src/Arduino_code/Arduino_code.ino:5:39: fatal error: diff_robot/ultra_readings.h: No such file or directory
#include <diff_robot/ultra_readings.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Mega ADK.
Can you please update your question with a copy and paste of the errors
Edited the question