pixhawk/mavlink-ros-pkg — Issue #4: Installation on Electric & Ubuntu 11.10
Author: penguinlogicjwr
Created: 2012-01-27 22:40:32+00:00
State: open

I've been trying to install serial_mavlink_ros under ROS Electric and Ubuntu 11.10. Unfortunately I can't because I keep getting the following errors:

[100%] Building CXX object CMakeFiles/mavlink_bridge_serial.dir/src/mavlink_ros_serial.o
In file included from /home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/src/mavlink_ros_serial.cpp:41:0:
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/../include/mavlink_attitude_ros.h:39:77: error: ‘lcm_mavlink_ros’ has not been declared
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/../include/mavlink_attitude_ros.h:39:102: error: expected ‘,’ or ‘...’ before ‘&’ token
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/../include/mavlink_attitude_ros.h: In function ‘void convertMavlinkCOMMANDToROS(const mavlink_message_t*, int)’:
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/../include/mavlink_attitude_ros.h:44:2: error: ‘COMMAND_msg’ was not declared in this scope
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/src/mavlink_ros_serial.cpp: In function ‘void* serial_wait(void*)’:
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/src/mavlink_ros_serial.cpp:335:48: error: ‘mavlink_message_t’ has no member named ‘payload’
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/src/mavlink_ros_serial.cpp: In function ‘void mavlinkCallback(const Mavlink&)’:
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/src/mavlink_ros_serial.cpp:380:75: error: ‘mavlink_message_t’ has no member named ‘payload’
/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/src/mavlink_ros_serial.cpp:382:99: error: too few arguments to function ‘uint16_t mavlink_finalize_message(mavlink_message_t*, uint8_t, uint8_t, uint8_t, uint8_t)’
/home/james/ros/mavlink/include/pixhawk/../mavlink_helpers.h:83:25: note: declared here
make[3]: *** [CMakeFiles/mavlink_bridge_serial.dir/src/mavlink_ros_serial.o] Error 1
make[3]: Leaving directory `/home/james/ros/mavlink-ros-pkg/serial_mavlink_ros/build'

The attitude.h ones don't appear if I comment out the last two functions in that file but the others still do.

I was wondering if you had any thoughts?

Many thanks,

James Robinson