Ask Your Question

Revision history [back]

How do I put it in ros.h? Here is the ros.h file, it makes no reference to those parameters:

**

> #ifndef _ROS_H_
> #define _ROS_H_
> 
> #include "ros/node_handle.h"
> #include "ArduinoHardware.h"
> 
> namespace ros {
> #if defined(__AVR_ATmega8__) || defined(__AVR_ATmega168__)   /*
> downsize our buffers */   typedef
> NodeHandle_<ArduinoHardware, 6, 6,
> 150, 150> NodeHandle;
> 
> #elif defined(__AVR_ATmega328P__)
> 
>   typedef NodeHandle_<ArduinoHardware,
> 25, 25, 280, 280> NodeHandle;
> 
> #else
> 
>   typedef NodeHandle_<ArduinoHardware>
> NodeHandle;
> 
> #endif    }
> 
> #endif

**

How Turns out that changing it the values in node_handle.h fixed the problem (once I figured out how to make the arduino IDE compile the correct node_handle.h). But I would like to do this correctly, so can you tell me how do I put it in ros.h? Here is the ros.h file, it makes no reference to those parameters:

**

> #ifndef _ROS_H_
> #define _ROS_H_
> 
> #include "ros/node_handle.h"
> #include "ArduinoHardware.h"
> 
> namespace ros {
> #if defined(__AVR_ATmega8__) || defined(__AVR_ATmega168__)   /*
> downsize our buffers */   typedef
> NodeHandle_<ArduinoHardware, 6, 6,
> 150, 150> NodeHandle;
> 
> #elif defined(__AVR_ATmega328P__)
> 
>   typedef NodeHandle_<ArduinoHardware,
> 25, 25, 280, 280> NodeHandle;
> 
> #else
> 
>   typedef NodeHandle_<ArduinoHardware>
> NodeHandle;
> 
> #endif    }
> 
> #endif

**