Skip to content
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

Catkin_make error #3

Open
goktugh opened this issue Feb 21, 2020 · 2 comments
Open

Catkin_make error #3

goktugh opened this issue Feb 21, 2020 · 2 comments

Comments

@goktugh
Copy link

goktugh commented Feb 21, 2020

Hi,
I am getting these errors when I try to compile with catkin_make, Has anyone experienced this problem before ?

My VESC firmware is 4.1 and Hw: 4.10

Building CXX object morph_hw/CMakeFiles/robot.dir/src/robot.cpp.o [ 70%] Building CXX object morph_hw/CMakeFiles/robot.dir/src/morph_hw.cpp.o In file included from /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.h:4:0, from /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.cpp:1: /home/ubuntu/catkin_ws/src/morph_hw/src/wheel_driver.h:18:74: error: ‘disp_pos_mode’ has not been declared wheel_driver(std::string port, ros::NodeHandle nh, std::string name, disp_pos_mode rotor_position_mode); ^ In file included from /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.h:4:0, from /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:1: /home/ubuntu/catkin_ws/src/morph_hw/src/wheel_driver.h:18:74: error: ‘disp_pos_mode’ has not been declared heel_driver(std::string port, ros::NodeHandle nh, std::string name, disp_pos_mo ^ In file included from /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.cpp:1:0: /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.h:15:199: error: ‘disp_pos_mode’ has not been declared MORPH_HW(std::string right_wheel_port, std::string left_wheel_port, double right_wheel_correction_factor, double left_wheel_correction_factor, double tacho_pulses_per_revolution, int motor_poles, disp_pos_mode rotor_position_source, ros::NodeHandle nh); ^ In file included from /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:1:0: /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.h:15:199: error: ‘disp_pos_mode’ has not been declared ection_factor, double tacho_pulses_per_revolution, int motor_poles, disp_pos_mo ^ /home/ubuntu/catkin_ws/src/morph_hw/src/morph_hw.cpp:10:179: error: ‘disp_pos_mode’ has not been declared MORPH_HW::MORPH_HW(std::string right_wheel_port, std::string left_wheel_port, double right_wheel_ikv, double left_wheel_ikv, double tacho_pulses_per_revolution, int motor_poles, disp_pos_mode rotor_position_source, ros::NodeHandle nh) : ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp: In function ‘int main(int, char**)’: /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:63:3: error: ‘disp_pos_mode’ was not declared in this scope disp_pos_mode mode = DISP_POS_MODE_NONE; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:66:7: error: ‘mode’ was not declared in this scope mode = DISP_POS_MODE_INDUCTANCE; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:66:14: error: ‘DISP_POS_MODE_INDUCTANCE’ was not declared in this scope mode = DISP_POS_MODE_INDUCTANCE; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:68:7: error: ‘mode’ was not declared in this scope mode = DISP_POS_MODE_OBSERVER; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:68:14: error: ‘DISP_POS_MODE_OBSERVER’ was not declared in this scope mode = DISP_POS_MODE_OBSERVER; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:70:7: error: ‘mode’ was not declared in this scope mode = DISP_POS_MODE_ENCODER; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:70:14: error: ‘DISP_POS_MODE_ENCODER’ was not declared in this scope mode = DISP_POS_MODE_ENCODER; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:72:7: error: ‘mode’ was not declared in this scope mode = DISP_POS_MODE_PID_POS; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:72:14: error: ‘DISP_POS_MODE_PID_POS’ was not declared in this scope mode = DISP_POS_MODE_PID_POS; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:74:7: error: ‘mode’ was not declared in this scope mode = DISP_POS_MODE_PID_POS_ERROR; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:74:14: error: ‘DISP_POS_MODE_PID_POS_ERROR’ was not declared in this scope mode = DISP_POS_MODE_PID_POS_ERROR; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:76:7: error: ‘mode’ was not declared in this scope mode = DISP_POS_MODE_ENCODER_OBSERVER_ERROR; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:76:14: error: ‘DISP_POS_MODE_ENCODER_OBSERVER_ERROR’ was not declared in this scope mode = DISP_POS_MODE_ENCODER_OBSERVER_ERROR; ^ /home/ubuntu/catkin_ws/src/morph_hw/src/robot.cpp:82:135: error: ‘mode’ was not declared in this scope wheel_ikv, left_wheel_ikv, tacho_pulses_per_revolution, motor_poles, mode, nh); ^ morph_hw/CMakeFiles/robot.dir/build.make:62: recipe for target 'morph_hw/CMakeFiles/robot.dir/src/robot.cpp.o' failed make[2]: *** [morph_hw/CMakeFiles/robot.dir/src/robot.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... morph_hw/CMakeFiles/robot.dir/build.make:86: recipe for target 'morph_hw/CMakeFiles/robot.dir/src/morph_hw.cpp.o' failed make[2]: *** [morph_hw/CMakeFiles/robot.dir/src/morph_hw.cpp.o] Error 1 CMakeFiles/Makefile2:5119: recipe for target 'morph_hw/CMakeFiles/robot.dir/all' failed make[1]: *** [morph_hw/CMakeFiles/robot.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j2" failed

@roaldlemmens
Copy link
Owner

Hi and thank you for your interest in the project! I have not had this issue before. Just today I did a fresh checkout and compile on ROS Kinetic without any issue. It seems the compiler is not able to find the enum which is defined in datatypes.h of the vesc_driver package. So it looks like the vesc git submodule is not checked out or somehow not found by the compiler.
Can you check? And otherwise perhaps you can specify more about your situation (Ubuntu version, ROS version, branch used).

@goktugh
Copy link
Author

goktugh commented Mar 4, 2020

Hi
Thank you for your reply and you did great works and I also would like to contribute to the project as far as I can.
I' am using raspberry pi and Ubuntu directly doesn't support raspberry pi or I didn't find so ı find Ubiquity Robotics as far as ı know it's based on ubuntu. And also Ros kinetic comes already installed.
But I wanna make a fresh start and I will try on a computer.
for making sure everything is clear;
which VESC driver should I use? (Could you share a link?)
My vesc hw version is 4.10 so which firmware should I upload? I mean which vesc fw is supporting your ros library?
lastly, what is ubuntu version and ros you are using now?

Regards

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

2 participants