The way to escape an apostrophe in octave is with another apostrophe:<br><br>x = [    '# This expresses velocity in free space broken into it''s 
linear and angular parts. \n'<br><br>Alex<br><br><div class="gmail_quote">On Fri, May 14, 2010 at 9:03 AM, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">hi Eric,<br>
<br>
Try the attached patch against genmsg_cpp (that's where the rosoct<br>
code generator lives.  I tried escaping the apostrophe with a<br>
backslash, but that doesn't appear to work.  So this patch just<br>
removes apostrophes;  they should only appear in comments, so it<br>
shouldn't make any difference (and in the case of the Twist message,<br>
this approach happens to correct the grammar error that you point out<br>
:).<br>
<br>
Let me know if the patch works (I'm not an Octave user).<br>
<font color="#888888"><br>
        brian.<br>
</font><div><div></div><div class="h5"><br>
On Thu, May 13, 2010 at 11:52 PM, Eric Perko <<a href="mailto:wisesage5001@gmail.com">wisesage5001@gmail.com</a>> wrote:<br>
> Hey all,<br>
><br>
> I'm trying to get some prototyping code working using the ROS<br>
> interface (latest tag) for Octave, but I've encountered a problem with<br>
> the Twist message. First, here is the specific error text when running<br>
> the attached source:<br>
><br>
> octave:1> publish_vel<br>
> ans =  1<br>
> parse error near line 32 of file<br>
> /opt/ros/stacks/common_msgs/geometry_msgs/msg/oct/geometry_msgs/geometry_msgs_Twist.m<br>
><br>
>  syntax error<br>
><br>
>>>> x = [    '# This expresses velocity in free space broken into it's linear and angular parts. \n' ...<br>
><br>
>                   ^<br>
><br>
> error: error creating function handle "@geometry_msgs_Twist"<br>
> error: evaluating argument list element number 2<br>
> error: evaluating assignment expression near line 5, column 9<br>
> error: near line 5 of file `/home/eric/Downloads/publish_vel.m'<br>
><br>
> I do have my .octaverc all setup properly.<br>
><br>
> If I edit the Twist.m file and remove the apostrophe from it's, the<br>
> attached code runs just fine. It seems that the apostrophes need to be<br>
> escaped or replaced or something.<br>
><br>
> Also, the grammar in that comment in Twist.msg is wrong - it's should<br>
> be its anyways :)<br>
><br>
> - Eric<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
><br>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>