Macros | Functions | Variables
bulk_read_write_node.cpp File Reference
#include <ros/ros.h>
#include "std_msgs/String.h"
#include "dynamixel_sdk_examples/BulkGetItem.h"
#include "dynamixel_sdk_examples/BulkSetItem.h"
#include "dynamixel_sdk/dynamixel_sdk.h"
Include dependency graph for bulk_read_write_node.cpp:

Go to the source code of this file.

Macros

#define ADDR_GOAL_POSITION   116
 
#define ADDR_PRESENT_LED   65
 
#define ADDR_PRESENT_POSITION   132
 
#define ADDR_TORQUE_ENABLE   64
 
#define BAUDRATE   57600
 
#define DEVICE_NAME   "/dev/ttyUSB0"
 
#define DXL1_ID   1
 
#define DXL2_ID   2
 
#define PROTOCOL_VERSION   2.0
 

Functions

bool bulkGetItemCallback (dynamixel_sdk_examples::BulkGetItem::Request &req, dynamixel_sdk_examples::BulkGetItem::Response &res)
 
void bulkSetItemCallback (const dynamixel_sdk_examples::BulkSetItem::ConstPtr &msg)
 
int main (int argc, char **argv)
 

Variables

GroupBulkRead groupBulkRead (portHandler, packetHandler)
 
GroupBulkWrite groupBulkWrite (portHandler, packetHandler)
 
PacketHandlerpacketHandler = PacketHandler::getPacketHandler(PROTOCOL_VERSION)
 
PortHandlerportHandler = PortHandler::getPortHandler(DEVICE_NAME)
 

Macro Definition Documentation

◆ ADDR_GOAL_POSITION

#define ADDR_GOAL_POSITION   116

Definition at line 47 of file bulk_read_write_node.cpp.

◆ ADDR_PRESENT_LED

#define ADDR_PRESENT_LED   65

Definition at line 45 of file bulk_read_write_node.cpp.

◆ ADDR_PRESENT_POSITION

#define ADDR_PRESENT_POSITION   132

Definition at line 46 of file bulk_read_write_node.cpp.

◆ ADDR_TORQUE_ENABLE

#define ADDR_TORQUE_ENABLE   64

Definition at line 44 of file bulk_read_write_node.cpp.

◆ BAUDRATE

#define BAUDRATE   57600

Definition at line 55 of file bulk_read_write_node.cpp.

◆ DEVICE_NAME

#define DEVICE_NAME   "/dev/ttyUSB0"

Definition at line 56 of file bulk_read_write_node.cpp.

◆ DXL1_ID

#define DXL1_ID   1

Definition at line 53 of file bulk_read_write_node.cpp.

◆ DXL2_ID

#define DXL2_ID   2

Definition at line 54 of file bulk_read_write_node.cpp.

◆ PROTOCOL_VERSION

#define PROTOCOL_VERSION   2.0

Definition at line 50 of file bulk_read_write_node.cpp.

Function Documentation

◆ bulkGetItemCallback()

bool bulkGetItemCallback ( dynamixel_sdk_examples::BulkGetItem::Request &  req,
dynamixel_sdk_examples::BulkGetItem::Response &  res 
)

Definition at line 64 of file bulk_read_write_node.cpp.

◆ bulkSetItemCallback()

void bulkSetItemCallback ( const dynamixel_sdk_examples::BulkSetItem::ConstPtr &  msg)

Definition at line 127 of file bulk_read_write_node.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 201 of file bulk_read_write_node.cpp.

Variable Documentation

◆ groupBulkRead

◆ groupBulkWrite

◆ packetHandler

PacketHandler* packetHandler = PacketHandler::getPacketHandler(PROTOCOL_VERSION)

Definition at line 59 of file bulk_read_write_node.cpp.

◆ portHandler

PortHandler* portHandler = PortHandler::getPortHandler(DEVICE_NAME)

Definition at line 58 of file bulk_read_write_node.cpp.



dynamixel_sdk_examples
Author(s): zerom
autogenerated on Wed Mar 2 2022 00:13:53