Search:

Type: Posts; User: zahid990170

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,204

    thanks @salem for pointer in this direction. ...

    thanks @salem for pointer in this direction.

    I have a CMakeLists.txt file. I wanted to create separate ROS nodes (executable) one based on CMotionPlanner and other based on CCollisionObject....
  2. Replies
    2
    Views
    3,204

    Error when creating a subclass object

    Hi,

    I am relatively beginner in C++. I have the following question.
    I have two classes, CMotionPlanner which is the base class, and CCollisionObject which is the derived / subclass.


    ...
  3. thank you, yes, I was allocating columns as...

    thank you,
    yes, I was allocating columns as major dimension.
    I think, it is much less complicated to go with the option of using a struct. I will try this.
  4. getting a segmentation fault while trying to ...

    getting a segmentation fault while trying to



    strcpy( *(char**)(MY_ARRAY[0] + i) , val_0);
  5. I have updated the code to show int...

    I have updated the code to show


    int numByteInfo[10] = {20, 1, 4, 2, 2, 1, 1, 4, 8, 1};

    I am expecting that , 20 bytes are allocated to each element in first column.

    thanks,
    Zahid
  6. dynamic allocation of 2D array with different types in columns

    Hi all,

    I have a text file (tab delimited). This file contains a set of records. Each line is one record. Imagine that column headers have the following types.

    (char*) (uint8_t) (uint32_t)...
  7. structure members showing different values in different places in the program

    Hi all,


    I have a structure defined in the following way:



    enum F_STATUS
    {
    NOT_DONE = 0,
  8. Replies
    2
    Views
    1,996

    error using C macro

    Hi all,

    I need some help with the following problem.

    I have a C macro defined like this:



    #define AB_MAX_us_OP(_____ec) (long)(AB_MAX_bits_AP(_____ec)*D_T_US)
  9. Replies
    5
    Views
    2,532

    thanks for reply. I figured out, that...

    thanks for reply.

    I figured out, that normally, my second dimension was always fixed and I could always workout the size of first dimension. Therefore, I started to drop the pointer notation, and...
  10. Replies
    5
    Views
    2,532

    regarding passing 2d array to functions

    Hi all,

    I have a general question.

    This is regarding better understanding of representation/usage of 2D arrays.
    consider the following.



    #define MAX_COLS 4
  11. Hi Salem, I am looking into this, and will...

    Hi Salem,

    I am looking into this, and will write later on if I have another useful information.

    thanks for your help and time.

    Zahid
  12. to answer briefly the previous comment, ...

    to answer briefly the previous comment,

    library compilation went smooth, as it did not complain and it was able to find the needed file. In the local makefile , I have included the paths:
    ...
  13. thank you Salem, In order to explain this, I...

    thank you Salem,

    In order to explain this, I will write here the longer version that I wrote elsewhere. You can reply in your convenience. thanks for your time
    ...
  14. Hi Salem, thanks for your message. As a...

    Hi Salem,

    thanks for your message.

    As a follow up to this question, I write something regarding compilation process, as I think, there may be the problem. Please, if you or someone can help...
  15. thanks Salem, while I try to debug this with...

    thanks Salem,

    while I try to debug this with Valgrind,
    here is something I would like to share, hoping someone can identify some potential cause of problem.

    In the two functions, the...
  16. Another note: However, when I try to watch...

    Another note:

    However, when I try to watch just the memory location which relates with "sv.s_lvl" i.e. address "0xbffff344",
    this is the output that I receive which I am not able to...
  17. Hi, thanks for your help. I write more about...

    Hi,

    thanks for your help. I write more about this issue.

    Inside the caller function which is "a_function()", I have two variables of the structure SV. One variable is sv_t sv, and other...
  18. Hi, thanks for the reply. However, I have...

    Hi,

    thanks for the reply.

    However, I have been getting the same strange behavior.
    Before "b_function" is called, I can see the correct output (level is L_I) but inside "b_function" its...
  19. thanks for the reply. However, in my program...

    thanks for the reply.

    However, in my program this strange behavior is persisting.
    Until before the call to "b_function()" the values are correct, but inside the "b_function()" whenever I print,...
  20. enum value changes when passing into function

    Hi,

    I am experiencing a strange behavior when using enum.

    My enum is as follows:



    typedef enum {
    L_R = 0,
  21. Replies
    7
    Views
    581

    thanks, I still could not solve my problem,...

    thanks,

    I still could not solve my problem, However, I observed the following:

    Imagine, I create an structure variable and fill its member with values.

    I have a function defined as...
  22. Replies
    7
    Views
    581

    thank you, I made a small program but its working...

    thank you, I made a small program but its working fine, as expected, my original program is complex, I will have to see, where does the problem happen
  23. Replies
    7
    Views
    581

    Hi, To add further, I have the following macros...

    Hi, To add further, I have the following macros that give access to struct members. For example,



    #define abc_Get_level(_p_) ( (_p_)->lvl)


    It is this macro which gives always the same...
  24. Replies
    7
    Views
    581

    strange behavior using enum

    Hi all,

    I specify an enum which I use in another struct as show below:



    typedef enum {
    L_R,
    L_I,
    L_L
  25. Hi, thanks, I think, I was able to find...

    Hi,

    thanks, I think, I was able to find different sources of problem,
    One of them was that I was instantiating a variable of type "abc_ptr", and I was using this to assign values to structure...
Results 1 to 25 of 74
Page 1 of 3 1 2 3