Skip to content
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

D alex #37

Closed
wants to merge 6 commits into from
Closed

D alex #37

wants to merge 6 commits into from

Conversation

D-Alex
Copy link
Member

@D-Alex D-Alex commented Nov 10, 2015

I probably using Roby a bit differently and run into some problems. The following commits improve my workflow but I am not sure how they fit into a bigger picture.

@@ -198,7 +198,11 @@ def run(action_interface, arguments = Hash.new)
if !arguments.empty?
raise ArgumentError, "#{name} expects no arguments, but #{arguments.size} are given"
end
result = action_interface.send(name).as_plan
result = action_interface.send(name)
if(!result.class.has_ancestor?(returned_type))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the #as_plan is really needed as e.g. syskit returns an object that's not a task (but object#as_plan turns it into one).

Why don't you check on the result of #as_plan ?

@doudou
Copy link
Member

doudou commented Dec 7, 2015

A note on the commit prefixes: I use only a few:

core: for all in lib/roby/ and lib/roby/models/
coordination: for all in lib/roby/coordination/
interface: for all in lib/roby/interface/
templates: for the generation templates

Moreover, I prefer that you squash test and fix in the same commit.

Alexander Duda added 6 commits December 7, 2015 17:36
at the moment the follwoing code produces an error which is not
really addressing the issue

Robot.actions do
    describe('move robot')
    def move(arg)
        Roby::Task.new
    end
end
--> invalid replacement: missing provided models
Roby2::Actions::Main::Move
Delayed blocks were not removed from
the execution engine after they got called.
The ActionStateMachine is using a similar API as ActionScript. In the
first case, the start method sets the start state for the state machine
and does not start anything. Therefore, to prevent an misunderstanding
an exception is added in case start is called multiple times.
In case of a TimedOut exception the hole syskit instance is terminated.
To help understanding how this can be prevented the error message is
extended.
see #timeout_start implementation.
@D-Alex
Copy link
Member Author

D-Alex commented Dec 7, 2015

Ok, I rebased everything and removed some of the commits which are obviously not going to be merged. The open issues are:

I can create an issue for this, if you like.

@doudou
Copy link
Member

doudou commented Dec 9, 2015

Also: the tests don't pass

The best way to develop & test on Roby is to have a separate checkout and then do

bundle install
bundle exec rake test

@doudou
Copy link
Member

doudou commented Dec 9, 2015

(and Roby has travis integration enabled ... your PR is being checked right into github !)

@doudou
Copy link
Member

doudou commented Dec 10, 2015

I've moved the return type discussion to a separate issue: #46

@doudou doudou mentioned this pull request May 23, 2018
@doudou doudou closed this in #111 Sep 4, 2018
doudou added a commit that referenced this pull request Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants