-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong behaviors in :go-pos-unsafe / :move-trajectory / :move-trajectory #336
Conversation
Expected changes in practical use:
|
Hmm, I'm confused... It looks like the original @k-okada What are |
@k-okada Sorry, searching github issue, the original author is @YoheiKakiuchi |
My questions are now: 1. What is the difference between
|
6706e73
to
b22709d
Compare
OK. I now fixed implementation following documentation as follows: (:go-velocity
(x y d ;; [m/sec] [m/sec] [rad/sec]
&optional (msec 1000) ;; msec is total animation time [msec]
&key (stop t) (wait))
"move robot at given speed for given msec.
if stop is t, robot stops after msec, use wait t for blocking call
return nil if aborted while waiting by enabling :wait, otherwise return t" (:move-trajectory
(x y d &optional (msec 1000) &key (stop t) (start-time) (send-action nil))
- " x [m/sec] y [m/sec] d [rad/sec] msec [milli second]
+ " x [m] y [m] d [rad] msec [milli second]
stop [ stop after msec moveing ]
start-time [ robot will move at start-time [sec or ros::Time] ]
send-action [ send message to action server, it means robot will move ]" (:move-trajectory-sequence
(trajectory-points time-list &key (stop t) (start-time) (send-action nil))
"Move base following the trajectory points at each time points
trajectory-points [ list of #f(x y d) ([m] for x, y; [rad] for d) ]
time-list [list of time span [msec] ]
stop [ stop after msec moveing ]
start-time [ robot will move at start-time [sec or ros::Time] ]
send-action [ send message to action server, it means robot will move ]" |
You're right. A Since we do not have |
BTW is it possible to make test code for this? |
@k-okada Thanks for clear explanation! |
@k-okada ping or any comments? |
I think @708yamaguchi is checking this feature with real robot, and waiting for feedback from him |
@k-okada cc @furushchev |
:go-pos-unsafe
internally computes the duration of base movement given a goal and slow the motion if it is less than 1000 msec (for safety reason, I guess), but the duration is still left original value so the goal is never reached.:move-trajectory
: documentation saysBut it also accepts
list
forx
andy
but in that case,x
is assumed as the list of#f(x y d)
, y for list oftime[msec]
, and thend
andmsec
are ignored!This is really confusing...
It looks it is the function that
:move-trajectory-sequence
should have, so I moved the functionality to:move-trajectory-sequence
.And I also fixed some parts where
msec
andsec
are mistaken in original functionality moved from:move-trajectory
.:move-trajectory-sequence