node_action_server_ros_iot_bridge module

ROS/IoT Bridge

This program intends act as a bridge bwtween ROS and IoT. MQTT/HTTP requests are received/sent here.

class node_action_server_ros_iot_bridge.IotRosBridge

Bases: object

ROS/Iot Bridge Class : Performs MQTT Sub + Spreadsheet Pub

func_incoming_order_callback(client, userdata, message)

Callback Function

This method is triggered when there is an incoming order.

Parameters
  • client (string) – Information regarding the MQTT client.

  • userdata (string) – Information regarding the userdata (if any).

  • message (string) – Contains the MQTT message.

on_goal(goal_handle)

Callback Function

This function will be called when Action Server receives a Goal.

Parameters

goal_handle (object) – Goal handler for the incoming goal.

process_goal(goal_handle)

Goal Processing Function

This function is called is a separate thread to process Goal

Parameters

goal_handle (object) – Goal handler for the incoming goal.

node_action_server_ros_iot_bridge.func_dispatch_data_callback(data)

Callback Function

This method is triggered when a package is dispatched.

Parameters

data (string) – Relevant information regarding the dispatched package.

node_action_server_ros_iot_bridge.func_inventory_data_callback(data)

Callback Function

This method is triggered when there is a detected package on the shelf.

Parameters

data (string) – Relevant information regarding the detected package.

node_action_server_ros_iot_bridge.func_shipped_data_callback(data)

Callback Function

This method is triggered when a package is shipped.

Parameters

data (string) – Relevant information regarding the shipped package.

node_action_server_ros_iot_bridge.main()

Main Function

node_action_server_ros_iot_bridge.on_cancel(goal_handle)

Goal Canceling Function

This function will be called when Goal Cancel request is send to the Action Server.

Parameters

goal_handle (object) – Goal handler for the incoming goal.