Macros | Functions | Variables
complete_test.cpp File Reference
#include <geometry_msgs/PointStamped.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/WrenchStamped.h>
#include <sensor_msgs/Illuminance.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/MagneticField.h>
#include <sensor_msgs/NavSatFix.h>
#include <sensor_msgs/Range.h>
#include <signal.h>
#include <std_msgs/Float32MultiArray.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Float64MultiArray.h>
#include <std_msgs/String.h>
#include <std_msgs/UInt16.h>
#include <std_msgs/UInt8MultiArray.h>
#include <webots_ros/BoolStamped.h>
#include <webots_ros/Float64Stamped.h>
#include <webots_ros/Int32Stamped.h>
#include <webots_ros/Int8Stamped.h>
#include <webots_ros/RadarTarget.h>
#include <webots_ros/RecognitionObject.h>
#include <webots_ros/RecognitionObjects.h>
#include <webots_ros/StringStamped.h>
#include <cstdlib>
#include "ros/ros.h"
#include <webots_ros/get_bool.h>
#include <webots_ros/get_float.h>
#include <webots_ros/get_float_array.h>
#include <webots_ros/get_int.h>
#include <webots_ros/get_string.h>
#include <webots_ros/get_uint64.h>
#include <webots_ros/get_urdf.h>
#include <webots_ros/set_bool.h>
#include <webots_ros/set_float.h>
#include <webots_ros/set_float_array.h>
#include <webots_ros/set_int.h>
#include <webots_ros/set_string.h>
#include <webots_ros/camera_get_focus_info.h>
#include <webots_ros/camera_get_info.h>
#include <webots_ros/camera_get_zoom_info.h>
#include <webots_ros/display_draw_line.h>
#include <webots_ros/display_draw_oval.h>
#include <webots_ros/display_draw_pixel.h>
#include <webots_ros/display_draw_polygon.h>
#include <webots_ros/display_draw_rectangle.h>
#include <webots_ros/display_draw_text.h>
#include <webots_ros/display_get_info.h>
#include <webots_ros/display_image_copy.h>
#include <webots_ros/display_image_delete.h>
#include <webots_ros/display_image_load.h>
#include <webots_ros/display_image_new.h>
#include <webots_ros/display_image_paste.h>
#include <webots_ros/display_image_save.h>
#include <webots_ros/display_set_font.h>
#include <webots_ros/field_disable_sf_tracking.h>
#include <webots_ros/field_enable_sf_tracking.h>
#include <webots_ros/field_get_bool.h>
#include <webots_ros/field_get_color.h>
#include <webots_ros/field_get_count.h>
#include <webots_ros/field_get_float.h>
#include <webots_ros/field_get_int32.h>
#include <webots_ros/field_get_name.h>
#include <webots_ros/field_get_node.h>
#include <webots_ros/field_get_rotation.h>
#include <webots_ros/field_get_string.h>
#include <webots_ros/field_get_type.h>
#include <webots_ros/field_get_vec2f.h>
#include <webots_ros/field_get_vec3f.h>
#include <webots_ros/field_import_node.h>
#include <webots_ros/field_remove.h>
#include <webots_ros/field_set_bool.h>
#include <webots_ros/field_set_color.h>
#include <webots_ros/field_set_float.h>
#include <webots_ros/field_set_int32.h>
#include <webots_ros/field_set_rotation.h>
#include <webots_ros/field_set_string.h>
#include <webots_ros/field_set_vec2f.h>
#include <webots_ros/field_set_vec3f.h>
#include <webots_ros/lidar_get_frequency_info.h>
#include <webots_ros/lidar_get_info.h>
#include <webots_ros/motor_set_control_pid.h>
#include <webots_ros/node_add_force_or_torque.h>
#include <webots_ros/node_add_force_with_offset.h>
#include <webots_ros/node_disable_contact_points_tracking.h>
#include <webots_ros/node_disable_pose_tracking.h>
#include <webots_ros/node_enable_contact_points_tracking.h>
#include <webots_ros/node_enable_pose_tracking.h>
#include <webots_ros/node_get_center_of_mass.h>
#include <webots_ros/node_get_contact_point.h>
#include <webots_ros/node_get_contact_point_node.h>
#include <webots_ros/node_get_contact_points.h>
#include <webots_ros/node_get_field.h>
#include <webots_ros/node_get_field_by_index.h>
#include <webots_ros/node_get_id.h>
#include <webots_ros/node_get_name.h>
#include <webots_ros/node_get_number_of_contact_points.h>
#include <webots_ros/node_get_number_of_fields.h>
#include <webots_ros/node_get_orientation.h>
#include <webots_ros/node_get_parent_node.h>
#include <webots_ros/node_get_pose.h>
#include <webots_ros/node_get_position.h>
#include <webots_ros/node_get_static_balance.h>
#include <webots_ros/node_get_status.h>
#include <webots_ros/node_get_string.h>
#include <webots_ros/node_get_type.h>
#include <webots_ros/node_get_velocity.h>
#include <webots_ros/node_remove.h>
#include <webots_ros/node_reset_functions.h>
#include <webots_ros/node_set_joint_position.h>
#include <webots_ros/node_set_string.h>
#include <webots_ros/node_set_velocity.h>
#include <webots_ros/node_set_visibility.h>
#include <webots_ros/pen_set_ink_color.h>
#include <webots_ros/range_finder_get_info.h>
#include <webots_ros/receiver_get_emitter_direction.h>
#include <webots_ros/robot_get_device_list.h>
#include <webots_ros/robot_set_mode.h>
#include <webots_ros/robot_wait_for_user_input_event.h>
#include <webots_ros/save_image.h>
#include <webots_ros/speaker_play_sound.h>
#include <webots_ros/speaker_speak.h>
#include <webots_ros/supervisor_get_from_def.h>
#include <webots_ros/supervisor_get_from_id.h>
#include <webots_ros/supervisor_get_from_string.h>
#include <webots_ros/supervisor_movie_start_recording.h>
#include <webots_ros/supervisor_set_label.h>
#include <webots_ros/supervisor_virtual_reality_headset_get_orientation.h>
#include <webots_ros/supervisor_virtual_reality_headset_get_position.h>

Go to the source code of this file.

Macros

#define TIME_STEP   32
 

Functions

void accelerometerCallback (const sensor_msgs::Imu::ConstPtr &values)
 
void altimeterCallback (const webots_ros::Float64Stamped::ConstPtr &value)
 
void battery_sensorCallback (const webots_ros::Float64Stamped::ConstPtr &value)
 
void cameraCallback (const sensor_msgs::Image::ConstPtr &values)
 
void cameraRecognitionCallback (const webots_ros::RecognitionObjects::ConstPtr &objects)
 
void compassCallback (const sensor_msgs::MagneticField::ConstPtr &values)
 
void connectorCallback (const webots_ros::Int8Stamped::ConstPtr &value)
 
void distance_sensorCallback (const sensor_msgs::Range::ConstPtr &value)
 
void GPSCallback (const geometry_msgs::PointStamped::ConstPtr &values)
 
void GPSSpeedCallback (const webots_ros::Float64Stamped::ConstPtr &value)
 
void gyroCallback (const sensor_msgs::Imu::ConstPtr &values)
 
void inertialUnitCallback (const sensor_msgs::Imu::ConstPtr &values)
 
void joystickCallback (const webots_ros::Int8Stamped::ConstPtr &value)
 
void keyboardCallback (const webots_ros::Int32Stamped::ConstPtr &value)
 
void lidarCallback (const sensor_msgs::Image::ConstPtr &image)
 
void lightSensorCallback (const sensor_msgs::Illuminance::ConstPtr &value)
 
int main (int argc, char **argv)
 
void modelNameCallback (const std_msgs::String::ConstPtr &name)
 
void motorSensorCallback (const webots_ros::Float64Stamped::ConstPtr &value)
 
void positionSensorCallback (const webots_ros::Float64Stamped::ConstPtr &value)
 
void quit (int sig)
 
void radarTargetsCallback (const webots_ros::RadarTarget::ConstPtr &target)
 
void radarTargetsNumberCallback (const webots_ros::Int8Stamped::ConstPtr &value)
 
void rangeFinderCallback (const sensor_msgs::Image::ConstPtr &image)
 
void receiverCallback (const webots_ros::StringStamped::ConstPtr &value)
 
void segmentationCallback (const sensor_msgs::Image::ConstPtr &values)
 
void touchSensor3DCallback (const geometry_msgs::WrenchStamped::ConstPtr &values)
 
void touchSensorBumperCallback (const webots_ros::BoolStamped::ConstPtr &value)
 
void touchSensorCallback (const webots_ros::Float64Stamped::ConstPtr &value)
 

Variables

static double accelerometerValues [3] = {0, 0, 0}
 
static bool callbackCalled = false
 
static double compassValues [3] = {0, 0, 0}
 
static int connectorPresence = 0
 
static double GPSValues [3] = {0, 0, 0}
 
static double GyroValues [3] = {0, 0, 0}
 
static vector< unsigned char > imageColor
 
static vector< float > imageRangeFinder
 
static double inertialUnitValues [4] = {0, 0, 0, 0}
 
static int model_count
 
static vector< stringmodel_list
 
ros::ServiceClient time_step_client
 
webots_ros::set_int time_step_srv
 
static double touchSensorValues [3] = {0, 0, 0}
 

Macro Definition Documentation

◆ TIME_STEP

#define TIME_STEP   32

Definition at line 147 of file complete_test.cpp.

Function Documentation

◆ accelerometerCallback()

void accelerometerCallback ( const sensor_msgs::Imu::ConstPtr &  values)

Definition at line 248 of file complete_test.cpp.

◆ altimeterCallback()

void altimeterCallback ( const webots_ros::Float64Stamped::ConstPtr &  value)

Definition at line 258 of file complete_test.cpp.

◆ battery_sensorCallback()

void battery_sensorCallback ( const webots_ros::Float64Stamped::ConstPtr &  value)

Definition at line 263 of file complete_test.cpp.

◆ cameraCallback()

void cameraCallback ( const sensor_msgs::Image::ConstPtr &  values)

Definition at line 174 of file complete_test.cpp.

◆ cameraRecognitionCallback()

void cameraRecognitionCallback ( const webots_ros::RecognitionObjects::ConstPtr &  objects)

Definition at line 184 of file complete_test.cpp.

◆ compassCallback()

void compassCallback ( const sensor_msgs::MagneticField::ConstPtr &  values)

Definition at line 268 of file complete_test.cpp.

◆ connectorCallback()

void connectorCallback ( const webots_ros::Int8Stamped::ConstPtr &  value)

Definition at line 241 of file complete_test.cpp.

◆ distance_sensorCallback()

void distance_sensorCallback ( const sensor_msgs::Range::ConstPtr &  value)

Definition at line 278 of file complete_test.cpp.

◆ GPSCallback()

void GPSCallback ( const geometry_msgs::PointStamped::ConstPtr &  values)

Definition at line 283 of file complete_test.cpp.

◆ GPSSpeedCallback()

void GPSSpeedCallback ( const webots_ros::Float64Stamped::ConstPtr &  value)

Definition at line 293 of file complete_test.cpp.

◆ gyroCallback()

void gyroCallback ( const sensor_msgs::Imu::ConstPtr &  values)

Definition at line 298 of file complete_test.cpp.

◆ inertialUnitCallback()

void inertialUnitCallback ( const sensor_msgs::Imu::ConstPtr &  values)

Definition at line 308 of file complete_test.cpp.

◆ joystickCallback()

void joystickCallback ( const webots_ros::Int8Stamped::ConstPtr &  value)

Definition at line 204 of file complete_test.cpp.

◆ keyboardCallback()

void keyboardCallback ( const webots_ros::Int32Stamped::ConstPtr &  value)

Definition at line 209 of file complete_test.cpp.

◆ lidarCallback()

void lidarCallback ( const sensor_msgs::Image::ConstPtr &  image)

Definition at line 237 of file complete_test.cpp.

◆ lightSensorCallback()

void lightSensorCallback ( const sensor_msgs::Illuminance::ConstPtr &  value)

Definition at line 320 of file complete_test.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 369 of file complete_test.cpp.

◆ modelNameCallback()

void modelNameCallback ( const std_msgs::String::ConstPtr &  name)

Definition at line 167 of file complete_test.cpp.

◆ motorSensorCallback()

void motorSensorCallback ( const webots_ros::Float64Stamped::ConstPtr &  value)

Definition at line 325 of file complete_test.cpp.

◆ positionSensorCallback()

void positionSensorCallback ( const webots_ros::Float64Stamped::ConstPtr &  value)

Definition at line 330 of file complete_test.cpp.

◆ quit()

void quit ( int  sig)

Definition at line 361 of file complete_test.cpp.

◆ radarTargetsCallback()

void radarTargetsCallback ( const webots_ros::RadarTarget::ConstPtr &  target)

Definition at line 214 of file complete_test.cpp.

◆ radarTargetsNumberCallback()

void radarTargetsNumberCallback ( const webots_ros::Int8Stamped::ConstPtr &  value)

Definition at line 221 of file complete_test.cpp.

◆ rangeFinderCallback()

void rangeFinderCallback ( const sensor_msgs::Image::ConstPtr &  image)

Definition at line 227 of file complete_test.cpp.

◆ receiverCallback()

void receiverCallback ( const webots_ros::StringStamped::ConstPtr &  value)

Definition at line 355 of file complete_test.cpp.

◆ segmentationCallback()

void segmentationCallback ( const sensor_msgs::Image::ConstPtr &  values)

Definition at line 193 of file complete_test.cpp.

◆ touchSensor3DCallback()

void touchSensor3DCallback ( const geometry_msgs::WrenchStamped::ConstPtr &  values)

Definition at line 345 of file complete_test.cpp.

◆ touchSensorBumperCallback()

void touchSensorBumperCallback ( const webots_ros::BoolStamped::ConstPtr &  value)

Definition at line 340 of file complete_test.cpp.

◆ touchSensorCallback()

void touchSensorCallback ( const webots_ros::Float64Stamped::ConstPtr &  value)

Definition at line 335 of file complete_test.cpp.

Variable Documentation

◆ accelerometerValues

double accelerometerValues[3] = {0, 0, 0}
static

Definition at line 156 of file complete_test.cpp.

◆ callbackCalled

bool callbackCalled = false
static

Definition at line 162 of file complete_test.cpp.

◆ compassValues

double compassValues[3] = {0, 0, 0}
static

Definition at line 157 of file complete_test.cpp.

◆ connectorPresence

int connectorPresence = 0
static

Definition at line 155 of file complete_test.cpp.

◆ GPSValues

double GPSValues[3] = {0, 0, 0}
static

Definition at line 158 of file complete_test.cpp.

◆ GyroValues

double GyroValues[3] = {0, 0, 0}
static

Definition at line 159 of file complete_test.cpp.

◆ imageColor

vector<unsigned char> imageColor
static

Definition at line 153 of file complete_test.cpp.

◆ imageRangeFinder

vector<float> imageRangeFinder
static

Definition at line 154 of file complete_test.cpp.

◆ inertialUnitValues

double inertialUnitValues[4] = {0, 0, 0, 0}
static

Definition at line 160 of file complete_test.cpp.

◆ model_count

int model_count
static

Definition at line 151 of file complete_test.cpp.

◆ model_list

vector<string> model_list
static

Definition at line 152 of file complete_test.cpp.

◆ time_step_client

ros::ServiceClient time_step_client

Definition at line 164 of file complete_test.cpp.

◆ time_step_srv

webots_ros::set_int time_step_srv

Definition at line 165 of file complete_test.cpp.

◆ touchSensorValues

double touchSensorValues[3] = {0, 0, 0}
static

Definition at line 161 of file complete_test.cpp.



webots_ros
Author(s): Cyberbotics
autogenerated on Wed Mar 2 2022 01:15:14