RobotOS on dragonboard 410c

Install and set up:

sudo apt install ros-robot-dev
mkdir -p ~/catkin_ws/s
cd ~/catkin_ws/src
catkin_make
source devel/setup.sh

hello_world_node.cpp:

// Include the ROS C++ APIs
#include <ros/ros.h>

// Standard C++ entry point
int main(int argc, char** argv) {
  // Announce this program to the ROS master as a "node" called "hello_world_node"
  ros::init(argc, argv, "hello_world_node");
  // Start the node resource managers (communication, time, etc)
  ros::start();
  // Broadcast a simple log message
  ROS_INFO_STREAM("Hello, world!");
  // Process ROS callbacks until receiving a SIGINT (ctrl-c)
  ros::spin();
  // Stop the node's resources
  ros::shutdown();
  // Exit tranquilly
  return 0;
}

on one terminal::

roscore

and another:

./g++ hello_world_node.cpp -o hello_world_node -lroscpp -lrosconsole -lrostime

Instructions adapted from:

http://jbohren.com/articles/roscpp-hello-world/

RikuVoipio/RobotOS (last modified 2015-11-13 13:47:11)