<div dir="ltr">Wild guess, there is a but in orogen when the typedef is not defined in the project where the type is defined.<div><br></div><div>The only workaround I see right now is for you to use the std::vector&lt;&gt; (i.e. not the typedef) on the port for the time being. Please open a ticket on <a href="http://rock.opendfki.de">rock.opendfki.de</a> as well.</div>
<div><br></div><div>Sylvain</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 14, 2014 at 10:03 AM, Ajish Babu <span dir="ltr">&lt;<a href="mailto:ajish.babu@dfki.de" target="_blank">ajish.babu@dfki.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
      the line triggering the error is <br>
      <i><small>using_task_library &quot;cog_support_polygon&quot;</small></i><br>
      which contains the port with this datatype. The complete file
      looks like<br>
      <br>
      <i><small>name &quot;sherpa_tt_deployments&quot;<br>
          <br>
          using_task_library &quot;trajectory_generation&quot;<br>
          using_task_library &quot;cog_support_polygon&quot;<br>
          using_task_library &quot;sherpa_tt_mcs&quot;<br>
          using_task_library &quot;sams&quot;<br>
          <br>
          deployment &#39;sherpa_tt_kinematics&#39; do<br>
              task(&quot;self_collision_viz&quot;, &quot;sams::SelfCollisionViz&quot;).<br>
                  realtime.priority(40)<br>
                  <br>
              task(&quot;self_collision_ctrl&quot;, &quot;sams::SelfCollisionCtrl&quot;).<br>
                  realtime.priority(70)<br>
                  <br>
              task(&quot;self_collision_check&quot;, &quot;sams::SelfCollisionCheck&quot;).<br>
                  realtime.priority(70)<br>
          <br>
              task(&quot;cog_support_polygon&quot;, &quot;cog_support_polygon::Task&quot;).<br>
                  realtime.priority(70)<br>
                  <br>
              task(&quot;rml_position&quot;, &quot;trajectory_generation::Task&quot;).<br>
                  realtime.priority(80).<br>
                  periodic(0.01)<br>
          <br>
              task(&quot;sherpa_tt_mcs&quot;, &quot;sherpa_tt_mcs::Task&quot; ).<br>
                  realtime.priority(80)<br>
          <br>
              add_default_logger<br>
          end</small></i><br>
      <br>
      and the cog_support_polygon.orogen looks like<br>
      <br>
      <i><small>name &quot;cog_support_polygon&quot;<br>
          <br>
          using_library &quot;kdl_parser&quot;<br>
          using_library &quot;cog_support_polygon&quot;<br>
          import_types_from &quot;base&quot;<br>
          import_types_from &quot;cog_support_polygonTypes.hpp&quot;<br>
          import_types_from &quot;cog_support_polygon/SupportPolygon.hpp&quot;<br>
          <br>
          task_context &quot;Task&quot; do<br>
              needs_configuration<br>
          <br>
              runtime_states &#39;WITHIN_SAFETY_MARGIN&#39;, <br>
                  &#39;OUTSIDE_SAFETY_MARGIN&#39;,<br>
                  &#39;OUTSIDE_SUPPORT_POLYGON&#39;<br>
          <br>
              #Properties <br>
              property(&quot;urdf_file&quot;, &quot;/std/string&quot;).<br>
                  doc(&quot;UDRF file for the robot&quot;)<br>
          <br>
              property(&quot;safety_margin&quot;, &quot;/double&quot;, 0.0).<br>
                  doc(&quot;Minimum allowed distance to edge of convex hull&quot;)<br>
          <br>
              #Input ports<br>
              input_port(&quot;enabled&quot;, &quot;bool&quot;).<br>
                  doc(&quot;Set true to enable to modify command&quot;)<br>
          <br>
              input_port(&quot;joints_command&quot;, &quot;/base/commands/Joints&quot;).<br>
                  doc(&quot;Current joint state&quot;)<br>
          <br>
              input_port(&quot;body_orientation&quot;, &quot;/base/Quaterniond&quot;).<br>
                  doc(&quot;Orientation of the body w.r.t the world CS&quot;)<br>
          <br>
              input_port(&quot;support_points&quot;, &quot;</small></i><i><small>
          /cog_support_polygon/PolygonPoints3d&quot;).<br>
                  doc(&quot;Points which are part of the support&quot;)<br>
          <br>
              #Output ports<br>
              output_port(&quot;modified_joints_command&quot;,
          &quot;/base/commands/Joints&quot;).<br>
                  doc(&quot;Reference for joints&quot;)<br>
          <br>
              output_port(&quot;support_polygon_info&quot;,
          &quot;/cog_support_polygon/SupportPolygonInfo&quot;).<br>
                  doc(&quot;Data output from the support polygon&quot;)<br>
          <br>
              # Computed time for one cycle in seconds<br>
              output_port &quot;actual_cycle_time&quot;, &quot;/double&quot;<br>
          <br>
              port_driven &#39;joints_command&#39;<br>
          end</small></i><b><small><br>
          <br>
        </small></b>Now it is running without using the typedef !<b><small><br>
          <br>
        </small></b><small><big>regards<span class="HOEnZb"><font color="#888888"><br>
          Ajish</font></span></big></small><div><div class="h5"><b><small><br>
        </small></b><br>
      <br>
      On 05/13/2014 11:39 PM, Sylvain Joyeux wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">What is unclear is what generates the error from
        the orogen file. What is inside the sherpa_tt_deployments.orogen
        file ? (especially in the first few lines ...)
        <div><br>
        </div>
        <div>Sylvain</div>
      </div>
      <div class="gmail_extra">
        <br>
        <br>
        <div class="gmail_quote">On Tue, May 13, 2014 at 3:31 PM, Ajish
          Babu <span dir="ltr">&lt;<a href="mailto:ajish.babu@dfki.de" target="_blank">ajish.babu@dfki.de</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi all,<br>
              <br>
              I was trying to use the type <b><small><br>
                  typedef std::vector&lt; base::Vector3d &gt;
                  PolygonPoints3d;</small></b> <br>
              as port type in orogen module. The module builds without
              problems. <br>
              <br>
              But when I try to build the deployment it gives an error <br>
              <small><b>sherpa_tt_deployments.orogen:4: type
                  /cog_support_polygon/PolygonPoints3d is not declared
                  (Orocos::Generation::ConfigError). </b></small><br>
              <br>
              What I understand now is that the type <b><small>std::vector&lt;

                  base::Vector3d &gt; </small></b><small><big>is
                  already in the typekit in
                  base/orogen/types/base.orogen. I could not find any
                  warnings about it.<br>
                  <br>
                  Does anybody know what is going on? Why was there no
                  problem in building the module? Why would another
                  typedef create such a problem?<br>
                  <br>
                  regards<span><font color="#888888"><br>
                      Ajish<br>
                    </font></span></big></small> </div>
            <br>
            _______________________________________________<br>
            Rock-dev mailing list<br>
            <a href="mailto:Rock-dev@dfki.de" target="_blank">Rock-dev@dfki.de</a><br>
            <a href="http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev" target="_blank">http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br></div>