From: lijoe <reb...@li...> - 2010-09-10 11:12:21
|
In each loop of my programme, the robot moves to a new target position by GoTo() function.However,after several loops, segmentation fault always occur at GoTo() funcion. The following are debug information. #0 0x00110416 in __kernel_vsyscall () #1 0x00ac0591 in send () from /lib/libc.so.6 #2 0x0018c28e in playerc_client_writepacket (client=0xb7f2d008, header=0xbf89c814, data=0xbf89c878 "{�'��\231�?�ѨER\201�?") at client.c:1242 #3 0x0018c4f0 in playerc_client_write (client=0xb7f2d008, device=0x8ff4708, subtype=2 '\002', cmd=0xbf89c878, timestamp=0x0) at client.c:765 #4 0x00194a68 in playerc_position2d_set_cmd_pose_with_vel (device=0x8ff4708, pos={px = 0.36876312471458278, py = 0.85953630071031617, pa = 0}, vel= {px = 0.074999999999999997, py = 0, pa = 0.087266462599716474}, state=1) at dev_position2d.c:199 #5 0x001463f6 in PlayerCc::Position2dProxy::GoTo (this=0xbf89cae4, pos= {px = 0.36876312471458278, py = 0.85953630071031617, pa = 0}, vel= {px = 0.074999999999999997, py = 0, pa = 0.087266462599716474}) at position2dproxy.cc:107 #6 0x0804911f in move (sx=0.36876312471458278, sy=0.85953630071031617, pp=@0xbf89cae4) at 6rc.cc:53 #7 0x080496c5 in main () at 6rc.cc:175 then,I tried GoTo()function alone with the same pos={px = 0.36876312471458278, py = 0.85953630071031617, pa = 0}, and vel ={px = 0.074999999999999997, py = 0, pa = 0.087266462599716474}, it worked well. What's wrong? Any advice would be much appreciated! |