[Bug 841] assigning values of complex types in state machines and scripts fails

On Friday 11 March 2011 16:41:02 you wrote:
> http://bugs.orocos.org/show_bug.cgi?id=841
>
> Peter Soetens <peter [..] ...> changed:
>
> What |Removed |Added
> ---------------------------------------------------------------------------
> - Status|NEW |ASSIGNED
>
> --- Comment #1 from Peter Soetens <peter [..] ...> 2011-03-11
> 16:41:00 CET --- (In reply to comment #0)
>
> > Assign a value to a complex type (geometry_msgs.PoseStamped) fails in
> > both scripting and a state machine.
> > When I try the same in the taskbrowser however, there is no problem.
> >
> > Sample code:
> > var geometry_msgs.PoseStamped pose_stamped
> >
> > initial state StartRobotState {
> > entry {
> > print.ln("entry ended")
> > pose_stamped.pose.position.x = float64(0.1)
> > pose_stamped.pose.position.y = float64(0.2)
> > pose_stamped.pose.position.z = float64(0.3)
> > pose_stamped.pose.orientation.x = 0.0
> > pose_stamped.pose.orientation.y = 0.1
> > pose_stamped.pose.orientation.z = 0.2
> > pose_stamped.pose.orientation.w = 0.1
> > }
> > exit {
> > print.ln("exit")
> > }
> > }
> >
> > when checking in the taskbrowser the values of pose_stamped are still all
> > zero. Executing the same code in the taskbrowser works just fine.
> >
> > Tinne en Ruben

> Which ROS version and toolchain_ros version/branch are you using ?
ROS cturtle
toolchain 2.3
>
> Is this a regression or is it the first time you try it ?
First time I try this.

Tinne

[Bug 841] assigning values of complex types in state machines an

On Friday 11 March 2011 16:56:12 Tinne De Laet wrote:
> On Friday 11 March 2011 16:41:02 you wrote:
> > http://bugs.orocos.org/show_bug.cgi?id=841
> >
> > Peter Soetens <peter [..] ...> changed:
> > What |Removed |Added
> >
> > -------------------------------------------------------------------------
> > -- - Status|NEW |ASSIGNED
> >
> > --- Comment #1 from Peter Soetens <peter [..] ...> 2011-03-11
> > 16:41:00 CET --- (In reply to comment #0)
> >
> > > Assign a value to a complex type (geometry_msgs.PoseStamped) fails in
> > > both scripting and a state machine.
> > > When I try the same in the taskbrowser however, there is no problem.
> > >
> > > Sample code:
> > > var geometry_msgs.PoseStamped pose_stamped
> > >
> > > initial state StartRobotState {
> > > entry {
> > > print.ln("entry ended")
> > > pose_stamped.pose.position.x = float64(0.1)
> > > pose_stamped.pose.position.y = float64(0.2)
> > > pose_stamped.pose.position.z = float64(0.3)
> > > pose_stamped.pose.orientation.x = 0.0
> > > pose_stamped.pose.orientation.y = 0.1
> > > pose_stamped.pose.orientation.z = 0.2
> > > pose_stamped.pose.orientation.w = 0.1
> > > }
> > > exit {
> > > print.ln("exit")
> > > }
> > > }
> > >
> > > when checking in the taskbrowser the values of pose_stamped are still
> > > all zero. Executing the same code in the taskbrowser works just fine.
> > >
> > > Tinne en Ruben
> >
> > Which ROS version and toolchain_ros version/branch are you using ?
>
> ROS cturtle
> toolchain 2.3

I really need a toolchain_ros branch name.

Peter

Ruben Smits's picture

[Bug 841] assigning values of complex types in state machines an

orocos_toolchain_ros master branch

-- Ruben

(Sorry for the top-post, but there is not clean way to do this in MS Exchange OWA :( )
________________________________________
From: orocos-dev-bounces [..] ... [orocos-dev-bounces [..] ...] On Behalf Of Peter Soetens [peter [..] ...]
Sent: Friday, March 11, 2011 18:17
To: Tinne De Laet
Cc: orocos-dev [..] ...
Subject: Re: [Orocos-Dev] [Bug 841] assigning values of complex types in state machines and scripts fails

On Friday 11 March 2011 16:56:12 Tinne De Laet wrote:
> On Friday 11 March 2011 16:41:02 you wrote:
> > http://bugs.orocos.org/show_bug.cgi?id=841
> >
> > Peter Soetens <peter [..] ...> changed:
> > What |Removed |Added
> >
> > -------------------------------------------------------------------------
> > -- - Status|NEW |ASSIGNED
> >
> > --- Comment #1 from Peter Soetens <peter [..] ...> 2011-03-11
> > 16:41:00 CET --- (In reply to comment #0)
> >
> > > Assign a value to a complex type (geometry_msgs.PoseStamped) fails in
> > > both scripting and a state machine.
> > > When I try the same in the taskbrowser however, there is no problem.
> > >
> > > Sample code:
> > > var geometry_msgs.PoseStamped pose_stamped
> > >
> > > initial state StartRobotState {
> > > entry {
> > > print.ln("entry ended")
> > > pose_stamped.pose.position.x = float64(0.1)
> > > pose_stamped.pose.position.y = float64(0.2)
> > > pose_stamped.pose.position.z = float64(0.3)
> > > pose_stamped.pose.orientation.x = 0.0
> > > pose_stamped.pose.orientation.y = 0.1
> > > pose_stamped.pose.orientation.z = 0.2
> > > pose_stamped.pose.orientation.w = 0.1
> > > }
> > > exit {
> > > print.ln("exit")
> > > }
> > > }
> > >
> > > when checking in the taskbrowser the values of pose_stamped are still
> > > all zero. Executing the same code in the taskbrowser works just fine.
> > >
> > > Tinne en Ruben
> >
> > Which ROS version and toolchain_ros version/branch are you using ?
>
> ROS cturtle
> toolchain 2.3

I really need a toolchain_ros branch name.

Peter
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

[Bug 841] assigning values of complex types in state machines an

On Friday 11 March 2011 16:56:12 Tinne De Laet wrote:
> On Friday 11 March 2011 16:41:02 you wrote:
> > http://bugs.orocos.org/show_bug.cgi?id=841
> >
> > Peter Soetens <peter [..] ...> changed:
> > What |Removed |Added
> >
> > -------------------------------------------------------------------------
> > -- - Status|NEW |ASSIGNED
> >
> > --- Comment #1 from Peter Soetens <peter [..] ...> 2011-03-11
> > 16:41:00 CET --- (In reply to comment #0)
> >
> > > Assign a value to a complex type (geometry_msgs.PoseStamped) fails in
> > > both scripting and a state machine.
> > > When I try the same in the taskbrowser however, there is no problem.
> > >
> > > Sample code:
> > > var geometry_msgs.PoseStamped pose_stamped
> > >
> > > initial state StartRobotState {
> > > entry {
> > > print.ln("entry ended")
> > > pose_stamped.pose.position.x = float64(0.1)
> > > pose_stamped.pose.position.y = float64(0.2)
> > > pose_stamped.pose.position.z = float64(0.3)
> > > pose_stamped.pose.orientation.x = 0.0
> > > pose_stamped.pose.orientation.y = 0.1
> > > pose_stamped.pose.orientation.z = 0.2
> > > pose_stamped.pose.orientation.w = 0.1
> > > }
> > > exit {
> > > print.ln("exit")
> > > }
> > > }
> > >
> > > when checking in the taskbrowser the values of pose_stamped are still
> > > all zero. Executing the same code in the taskbrowser works just fine.
> > >
> > > Tinne en Ruben
> >
> > Which ROS version and toolchain_ros version/branch are you using ?
>
> ROS cturtle
> toolchain 2.3
>
> > Is this a regression or is it the first time you try it ?
>
> First time I try this.

A small update: it also works using LUA scripting.

Tinne