ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.

Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing " on line 6, as I pointed out. The message /home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory means that it's looking for a directory //std_msgs which would make sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.

Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing " `"` on line 6, as I pointed out. The message /home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: 
`/home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory directory` means that it's looking for a directory //std_msgs which would make `//std_msgs`

makes sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.

Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing `"` " on line 6, as I pointed out. The message message

`/home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory` means that it's looking for a directory `//std_msgs`

makes sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.

Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing " on line 6, as I pointed out. The message

`/home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory` directory`

means that it's looking for a directory `//std_msgs`

makes //std_msgs which would make sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.


Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing " on line 6, as I pointed out. The message

`/home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory`

means that it's looking for a directory //std_msgs which would make sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.


Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing " on line 6, as I pointed out. The message

`/home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory`

means that it's looking for a directory //std_msgs which would make sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.


Edit 3:

You're mixing up data types. Your calback function encoderCallback is expecting a data type of surp::Int32Stamped while your subscriber is expecting surp::Int32.

The error in your comment gives this away. The error in your question is unrelated. You should update your question with the full terminal output. That's the best way to get help from everyone.

Line 6 is missing a closing quotation mark:

#include "surp/Int32Stamped.h

should be

#include "surp/Int32Stamped.h"

Edit:

You're asking a lot of questions in one question. Perhaps asking new, separate questions will get more responses. A couple of Google searches turned up these links for issues regarding "best practices":

The question "how do I write my own controllers?" is very general and difficult to answer. Try to narrow it down a bit and ask a new question.


Edit 2:

Are you sure that you've updated your code and re-compiled it? Your repo still shows the same code missing the closing " on line 6, as I pointed out. The message

`/home/rmb/gopigo_ws/src/pd_controller/src/pd_controller.cpp: line 9: //std_msgs: No such file or directory`

means that it's looking for a directory //std_msgs which would make sense if it thinks that it's part of the include statement on line 6.

Either you haven't updated and re-compiled your code or you're not copying and pasting the entire contents of the output of the terminal.


Edit 3:

You're mixing up data types. Your publisher has the surp::Int32Stamped data type, your calback function encoderCallback is expecting a data type of surp::Int32Stamped in its argument while your subscriber is expecting saying that the data type will be surp::Int32. .

The error in your comment gives this away. The error in your question is unrelated. You should update your question with the full terminal output. That's the best way to get help from everyone.