Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D Class Reference
Inheritance diagram for node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def check_wh (self)
 
def hand_estimate (self, bgr, people_joint_positions)
 
def pose_estimate (self, bgr)
 
def subscribe (self)
 
def unsubscribe (self)
 
def visualize (self)
 

Public Attributes

 backend
 
 camera_info_msg
 
 gpu
 
 hand_gaussian_kernel
 
 hand_gaussian_ksize
 
 hand_gaussian_sigma
 
 hand_net
 
 hand_thre1
 
 hand_thre2
 
 hand_width_offset
 
 height
 
 image_pub
 
 pad_value
 
 pose_2d_pub
 
 pose_net
 
 pose_pub
 
 scales
 
 skeleton_pub
 
 stride
 
 sub_info
 
 subs
 
 thre1
 
 thre2
 
 use_hand
 
 width
 
 with_depth
 

Static Public Attributes

list hand_sequence
 
list index2handname = ["RHand{}".format(i) for i in range(21)]+\
 
list index2limbname
 
list limb_length_hand_ratio
 
list limb_sequence
 
list map_idx
 

Private Member Functions

def _cb (self, img_msg)
 
def _cb_cam_info (self, msg)
 
def _cb_with_depth (self, img_msg, depth_msg)
 
def _cb_with_depth_info (self, img_msg, depth_msg, camera_info_msg)
 
def _create_2d_people_pose_array_msgs (self, people_joint_positions, header)
 
def _crop_square_image (self, img, cx, cy, width)
 
def _draw_joints (self, img, people_joint_positions, all_peaks)
 
def _extract_joint_position (self, joint_cands_indices, candidate)
 
def _get_hand_roi_width (self, joint_positions)
 
def _hand_estimate_chainer_backend (self, bgr, people_joint_positions)
 
def _hand_estimate_chainer_backend_each (self, hand_bgr, cx, cy, left_hand)
 
def _load_chainer_model (self)
 
def _load_model (self)
 
def _pose_estimate_chainer_backend (self, bgr_img)
 

Detailed Description

Definition at line 88 of file people_pose_estimation_2d.py.

Constructor & Destructor Documentation

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.__init__ (   self)

Definition at line 136 of file people_pose_estimation_2d.py.

Member Function Documentation

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._cb (   self,
  img_msg 
)
private

Definition at line 343 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._cb_cam_info (   self,
  msg 
)
private

Definition at line 258 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._cb_with_depth (   self,
  img_msg,
  depth_msg 
)
private

Definition at line 264 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._cb_with_depth_info (   self,
  img_msg,
  depth_msg,
  camera_info_msg 
)
private

Definition at line 269 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._create_2d_people_pose_array_msgs (   self,
  people_joint_positions,
  header 
)
private

Definition at line 363 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._crop_square_image (   self,
  img,
  cx,
  cy,
  width 
)
private

Definition at line 821 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._draw_joints (   self,
  img,
  people_joint_positions,
  all_peaks 
)
private

Definition at line 636 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._extract_joint_position (   self,
  joint_cands_indices,
  candidate 
)
private

Definition at line 615 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._get_hand_roi_width (   self,
  joint_positions 
)
private

Definition at line 833 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._hand_estimate_chainer_backend (   self,
  bgr,
  people_joint_positions 
)
private

Definition at line 718 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._hand_estimate_chainer_backend_each (   self,
  hand_bgr,
  cx,
  cy,
  left_hand 
)
private

Definition at line 767 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._load_chainer_model (   self)
private

Definition at line 184 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._load_model (   self)
private

Definition at line 178 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D._pose_estimate_chainer_backend (   self,
  bgr_img 
)
private

Definition at line 383 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.check_wh (   self)

Definition at line 168 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_estimate (   self,
  bgr,
  people_joint_positions 
)

Definition at line 713 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.pose_estimate (   self,
  bgr 
)

Definition at line 378 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.subscribe (   self)

Definition at line 214 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.unsubscribe (   self)

Definition at line 251 of file people_pose_estimation_2d.py.

def node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.visualize (   self)

Definition at line 175 of file people_pose_estimation_2d.py.

Member Data Documentation

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.backend

Definition at line 138 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.camera_info_msg

Definition at line 244 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.gpu

Definition at line 147 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_gaussian_kernel

Definition at line 210 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_gaussian_ksize

Definition at line 151 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_gaussian_sigma

Definition at line 152 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_net

Definition at line 191 of file people_pose_estimation_2d.py.

list node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_sequence
static
Initial value:
1 = [[0, 1], [1, 2], [2, 3], [3, 4],
2  [0, 5], [5, 6], [6, 7], [7, 8],
3  [0, 9], [9, 10], [10, 11], [11, 12],
4  [0, 13], [13, 14], [14, 15], [15, 16],
5  [0, 17], [17, 18], [18, 19], [19, 20],]

Definition at line 107 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_thre1

Definition at line 153 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_thre2

Definition at line 154 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.hand_width_offset

Definition at line 155 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.height

Definition at line 145 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.image_pub

Definition at line 159 of file people_pose_estimation_2d.py.

list node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.index2handname = ["RHand{}".format(i) for i in range(21)]+\
static

Definition at line 133 of file people_pose_estimation_2d.py.

list node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.index2limbname
static
Initial value:
1 = ["Nose",
2  "Neck",
3  "RShoulder",
4  "RElbow",
5  "RWrist",
6  "LShoulder",
7  "LElbow",
8  "LWrist",
9  "RHip",
10  "RKnee",
11  "RAnkle",
12  "LHip",
13  "LKnee",
14  "LAnkle",
15  "REye",
16  "LEye",
17  "REar",
18  "LEar",
19  "Bkg"]

Definition at line 113 of file people_pose_estimation_2d.py.

list node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.limb_length_hand_ratio
static
Initial value:
1 = [ 0.6, 0.2, 0.2, 0.85, 0.85,
2  0.6, 0.6, 0.93, 0.65, 0.95,
3  0.65, 2.2, 1.7, 1.7, 2.2,
4  1.7, 1.7, 0.25, 0.25]

Definition at line 102 of file people_pose_estimation_2d.py.

list node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.limb_sequence
static
Initial value:
1 = [[ 2, 1], [ 1, 16], [ 1, 15], [ 6, 18], [ 3, 17],
2  [ 2, 3], [ 2, 6], [ 3, 4], [ 4, 5], [ 6, 7],
3  [ 7, 8], [ 2, 9], [ 9, 10], [10, 11], [ 2, 12],
4  [12, 13], [13, 14], [15, 17], [16, 18]]

Definition at line 92 of file people_pose_estimation_2d.py.

list node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.map_idx
static
Initial value:
1 = [[47, 48], [49, 50], [51, 52], [37, 38], [45, 46],
2  [31, 32], [39, 40], [33, 34], [35, 36], [41, 42],
3  [43, 44], [19, 20], [21, 22], [23, 24], [25, 26],
4  [27, 28], [29, 30], [53, 54], [55, 56]]

Definition at line 97 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.pad_value

Definition at line 141 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.pose_2d_pub

Definition at line 163 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.pose_net

Definition at line 186 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.pose_pub

Definition at line 160 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.scales

Definition at line 139 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.skeleton_pub

Definition at line 165 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.stride

Definition at line 140 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.sub_info

Definition at line 161 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.subs

Definition at line 221 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.thre1

Definition at line 142 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.thre2

Definition at line 143 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.use_hand

Definition at line 150 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.width

Definition at line 144 of file people_pose_estimation_2d.py.

node_scripts.people_pose_estimation_2d.PeoplePoseEstimation2D.with_depth

Definition at line 148 of file people_pose_estimation_2d.py.


The documentation for this class was generated from the following file:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:28