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

s_lana's profile - activity

2019-07-19 05:36:01 -0500 received badge  Famous Question (source)
2018-05-10 01:20:54 -0500 received badge  Famous Question (source)
2018-04-02 14:31:53 -0500 received badge  Notable Question (source)
2018-03-27 21:36:07 -0500 marked best answer Cannot include header from another package

I have a package my_lib, that contains Parameters.h in he include folder, which I need to include in another package my_main . I am following this answer to do so: https://answers.ros.org/question/2019... But I get

fatal error: my_lib/Parameters.h: No such file or directory compilation terminated.

when I run catkin_make. I can see Parameters.h appear successfully in catkin_ws/install/include/my_lib after I ran catkin_make install. In my_main package i did the following:

package.xml: added

<build_depend>my_lib</build_depend>
<exec_depend>my_lib</exec_depend>

CMakeLists.txt:

find_package(catkin REQUIRED COMPONENTS
  ...(other packages used in my_main)  
  my_lib )
find_package(Boost REQUIRED COMPONENTS system) 
catkin_package(INCLUDE_DIRS include
  LIBRARIES my_main 
  CATKIN_DEPENDS ...(other packages used in my_main) my_lib
  DEPENDS system_lib)
include_directories(   include  
  ${catkin_INCLUDE_DIRS}  
  ${Boost_INCLUDE_DIRS} )
  add_executable(my_main_node src/my_main_node.cpp)
target_link_libraries(my_main_node   ${catkin_LIBRARIES} )
install(DIRECTORY
  include/${PROJECT_NAME}/   DESTINATION
  ${CATKIN_PACKAGE_INCLUDE_DESTINATION} 
  FILES_MATCHING PATTERN "*.h"   PATTERN
  ".svn" EXCLUDE )

What am I missing?

2018-03-20 02:33:43 -0500 received badge  Notable Question (source)
2018-03-19 19:27:01 -0500 received badge  Popular Question (source)
2018-03-19 19:18:29 -0500 commented question Cannot include header from another package

No, that was just a typo during copying and renaming, it is all the same node. Sorry about that. Edited the post.

2018-03-19 19:12:58 -0500 commented question Cannot include header from another package

No, that was just a typo during copying and renaming. Sorry about that. It is all the same node.Edited the post.

2018-03-19 19:12:41 -0500 received badge  Editor (source)
2018-03-19 19:12:41 -0500 edited question Cannot include header from another package

Cannot include header from another package I have a package "my_lib", that contains "Parameters.h" in he include folder,

2018-03-19 19:12:17 -0500 commented question Cannot include header from another package

No, that was just a typo during copying and renaming. Sorry about that. It is all the same node.

2018-03-14 20:26:35 -0500 edited question Cannot include header from another package

Cannot include header from another package I have a package "my_lib", that contains "Parameters.h" in he include folder,

2018-03-14 20:25:56 -0500 asked a question Cannot include header from another package

Cannot include header from another package I have a package "my_lib", that contains "Parameters.h" in he include folder,

2018-02-27 15:30:16 -0500 asked a question catkin_INCLUDE_DIRS

catkin_INCLUDE_DIRS I have a node "manipulator_controller" with a ManipulatorConstants.h file. I am following this answe

2018-02-27 15:29:17 -0500 asked a question Including a header from install/include directory in kinetic

Including a header from install/include directory in kinetic I have a node "manipulator_controller" with a ManipulatorCo

2018-02-06 13:57:35 -0500 marked best answer Different goals in one action server

I have a bit of an issue trying to figure out the best way to implement an action server with different goals. Is it an acceptable practice to use enums if goals are very different from each other or do I need to have multiple action servers? Here is a bit of a background:

I have multiple nodes that need to control arms. I have one node that controls robot arms and accepts float values to specify goals, each arm can only go up and down, left and right. For my application, I only have a few routines that arms need to follow, for example picking an object up. Those routines always send the same values to the arm controlling node. To avoid repeating sending the same set of instructions from every node when I need to pick an object up, I want to create another node that will have those routines implemented, so the other nodes only need to specify which routine they need and let the new node take care of everything else.

From what I understand (I don't have any experience with action servers, so please correct me if I am wrong), I should create an Action Server to move the arms, and the rest of the nodes will be sending goals to it. My concern is, pickup routine will be very different from drop off. I know I can use enums for different routines, and then have a switch statement in the Execute Callback, which should work fine. Are there any issues with using that approach?

2018-02-06 13:57:35 -0500 received badge  Scholar (source)
2018-02-06 13:49:09 -0500 received badge  Supporter (source)
2018-02-06 08:54:10 -0500 received badge  Popular Question (source)
2018-02-05 23:12:14 -0500 received badge  Student (source)
2018-02-05 22:11:21 -0500 asked a question Different goals in one action server

Different goals in one action server I have a bit of an issue trying to figure out the best way to implement an action s

2018-02-05 21:24:29 -0500 received badge  Popular Question (source)
2017-11-21 09:13:21 -0500 received badge  Popular Question (source)
2017-11-20 23:10:19 -0500 asked a question Laser rotating around robot base

Laser rotating around robot base Laser on my robot is not fixed, but rotates around the middle of the robot instead. I n

2017-09-14 00:23:28 -0500 asked a question Attaching object to robot options

Attaching object to robot options I am trying to get a robot to pick up an object in gazebo (ROS indigo). My robot arms