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

Vic's profile - activity

2023-03-21 17:07:01 -0500 received badge  Famous Question (source)
2023-03-16 03:10:45 -0500 received badge  Student (source)
2023-02-01 22:35:58 -0500 received badge  Famous Question (source)
2023-01-04 03:58:24 -0500 commented answer Please tell me the meaning of the description in the launch file

Well, code doesn't lie, sometime our interpretation does. Do you have the possibility to launch the system with and with

2023-01-04 02:40:39 -0500 marked best answer TF2-Eigen 3.4 compatibility

I'm working in a quite big project in ROS 1, Noetic. In this project, some code need Eigen 3.4.9. However, some other code needs tf2, including eigen conversions. When compiling with both of them, I have the same errors than compiling with Eigen 3. Is there a way to make this work?

2023-01-04 02:21:47 -0500 edited answer Please tell me the meaning of the description in the launch file

Let's look at the top of the file <arg name="velocity_control" default="false"/> I think that if you launch wi

2023-01-04 02:19:42 -0500 edited answer Please tell me the meaning of the description in the launch file

Let's look at the top of the file <arg name="run_demo_traj" default="false"/> <arg name="effort_control"

2023-01-04 02:19:16 -0500 answered a question Please tell me the meaning of the description in the launch file

Let's look at the top of the file <arg name="run_demo_traj" default="false"/> <arg name="effort_control" defau

2023-01-04 02:19:16 -0500 received badge  Rapid Responder (source)
2023-01-02 05:27:08 -0500 received badge  Notable Question (source)
2022-10-20 03:07:52 -0500 commented question CPU usage for state machine node runs at 100%

Did you try to loop? Something along the line of rate = rospy.Rate(10) while not rospy.is_shutdown(): sm.execute()

2022-10-20 03:07:39 -0500 commented question CPU usage for state machine node runs at 100%

Did you try to loop? Something along the line of rate = rospy.Rate(10) while not rospy.is_shutdown(): sm.execute(

2022-10-20 03:07:21 -0500 commented question CPU usage for state machine node runs at 100%

Did you try to loop? Something along the line of rate = rospy.Rate(10) while not rospy.is_shutdown(): sm.execute(

2022-10-19 06:43:40 -0500 commented answer Delay when subscribing to usb_cam/image_raw

Strong statement indeed. Let me reformulate. A callback's execution time should be less than your node's rate.

2022-10-19 06:22:10 -0500 commented answer Delay when subscribing to usb_cam/image_raw

I think his limits come more from heavy callback than python/C++ raw performances

2022-10-19 06:21:15 -0500 commented answer Delay when subscribing to usb_cam/image_raw

Because there are other tasks in the original program that require execution time Try not overloading your callback

2022-10-19 06:21:06 -0500 commented answer Delay when subscribing to usb_cam/image_raw

Because there are other tasks in the original program that require execution time Try not overloading your callback

2022-10-18 02:35:21 -0500 received badge  Famous Question (source)
2022-10-18 02:29:47 -0500 answered a question Delay when subscribing to usb_cam/image_raw

First, what purpose serves sleeping in your callback? Right now, each message will be put in a queue that waits for the

2022-10-18 02:29:47 -0500 received badge  Rapid Responder (source)
2022-10-17 07:17:41 -0500 received badge  Popular Question (source)
2022-10-17 07:17:41 -0500 received badge  Notable Question (source)
2022-09-27 02:54:55 -0500 edited answer Error: Invoke "make -j4 -l4" failed.

Those are flags used for compiling. -j4 indicate you want to compile using 4 cores of your CPU (https://askubuntu.com/q

2022-09-27 02:54:15 -0500 edited answer Error: Invoke "make -j4 -l4" failed.

Those are flags used for compiling. https://earthly.dev/blog/make-flags/ -j4 indicate you want to compile using 4 cores

2022-09-27 02:51:55 -0500 answered a question Error: Invoke "make -j4 -l4" failed.

Those are flags used for compiling. https://earthly.dev/blog/make-flags/ -j4 indicate you want to compile using 4 cores

2022-09-27 02:51:55 -0500 received badge  Rapid Responder (source)
2022-09-13 04:14:04 -0500 commented answer How to set parameters names for python nodes in roslaunch

Setting args="/dev/ttyUSB0" solved the issue. Thanks.

2022-09-13 04:13:40 -0500 marked best answer How to set parameters names for python nodes in roslaunch

I am trying to automate a rosrun into a roslaunch. My command is shown below:

rosrun robotiq_2f_gripper_control Robotiq2FGripperRtuNode.py /dev/ttyUSB0

Problem:

I can not find a way to pass my argument as a parameter. The source code uses sys.argv[1] as the command line parameter. Is there a way to make this work in a launch file?

This is what I tried:

<launch>
    <node pkg="robotiq_2f_gripper_control" type="Robotiq2FGripperRtuNode.py" name="Robotiq2FGripperRtuNode" output="screen">
    <param name="device" value="/dev/ttyUSB1" />
</launch>

However, the execution is similar to mistyping the name of the device port in the rosrun command. I can edit the source code. Furthermore, I know that I could call the rosrun command in a .sh script, but I would appreciate using the proper tool for the job.

Offending package: TAMS-Group/robotiq

2022-09-13 04:04:03 -0500 commented answer How to set parameters names for python nodes in roslaunch

Thank you for your answer. Will try it out and let you know if that solve my problem.

2022-09-13 04:02:37 -0500 received badge  Popular Question (source)
2022-09-07 03:19:38 -0500 commented question two topics subscribed to one node c++ with sequance

What you can try : rostopic echo your "goal_pose" topic. The callback won't be called if the topic is never published

2022-09-07 03:19:27 -0500 commented question two topics subscribed to one node c++ with sequance

What you can try : - rostopic echo your "goal_pose" topic. The callback won't be called if the topic is never published

2022-09-07 03:12:14 -0500 commented question two topics subscribed to one node c++ with sequance

Could you please format the code? It is a bit hard to read

2022-09-05 07:46:36 -0500 asked a question How to set parameters names for python nodes in roslaunch

How to set parameters names for python nodes in roslaunch I'm trying to automatize a rosrun into a roslaunch. My command

2022-06-20 14:31:53 -0500 commented answer TF2-Eigen 3.4 compatibility

Thanks for the answer. Are there any ressource on how to build from source on the system tf2?

2022-06-20 10:59:07 -0500 asked a question TF2-Eigen 3.4 compatibility

TF2-Eigen 3.4 compatibility I'm working in a quite big project in ROS 1, Noetic. In this project, some code need Eigen 3

2022-05-05 10:53:19 -0500 received badge  Necromancer (source)
2022-05-04 08:45:31 -0500 received badge  Notable Question (source)
2022-05-04 02:22:14 -0500 marked best answer Unable to link ros::package::getPath

I'm trying to do the same as this example : https://answers.ros.org/question/3952...

The function is documented here : http://docs.ros.org/en/jade/api/rosli...

I created a minimum reproductible example of my problem, which I tested both on Kinetic and Noetic :

test.cpp :

#include <iostream>
#include <ros/package.h>

int main(int argc, char **argv)
{
   std::cout << "Hello, world!" << std::endl;
   std::string testString = ros::package::getPath("testPath");
   std::cout << "Package path is "  << testString << std::endl;
}

Package.xml :

<?xml version="1.0"?>
<package format="2">
<name>testPath</name>
<version>0.0.0</version>
<description>The testPath package</description>

<maintainer email="victor@todo.todo">victor</maintainer>

<license>TODO</license>


<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<build_depend>roslib</build_depend>
<build_export_depend>roscpp</build_export_depend>
<build_export_depend>roslib</build_export_depend>
<exec_depend>roscpp</exec_depend>
<exec_depend>roslib</exec_depend>

<export>
  <!-- Other tools can request additional information be placed here -->

</export>
</package>

CmakeList :

cmake_minimum_required(VERSION 3.0.2)
project(testPath)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  roslib
)
catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES testPath
#  CATKIN_DEPENDS roscpp roslib
#  DEPENDS system_lib
)

include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)

## Declare a C++ library
# add_library(${PROJECT_NAME}
#   src/${PROJECT_NAME}/testPath.cpp
# )

add_executable(${PROJECT_NAME}_node src/test.cpp)

The linking error I'm getting :

undefined reference to « ros::package::getPath(std::__cxx11::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&) »

Any leads on how to make this work?

2022-05-04 02:22:05 -0500 received badge  Rapid Responder
2022-05-04 02:22:05 -0500 answered a question Unable to link ros::package::getPath

As @gvdhoorn pointed, I was missing the target_link_libraries in CmakeList.txt

2022-05-04 02:20:55 -0500 edited question Unable to link ros::package::getPath

Unable to link ros::package::getPath I'm trying to do the same as this example : https://answers.ros.org/question/39523/

2022-05-04 02:20:01 -0500 commented question Unable to link ros::package::getPath

You were right. Adding target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES} ) in the CmakeLists.txt fix

2022-05-04 02:17:59 -0500 received badge  Popular Question (source)
2022-05-03 08:17:43 -0500 answered a question Retrieve first message in a topic

If your node is started before the topic is running, you can create a subscriber and a static boolean in your callback (

2022-05-03 08:11:56 -0500 asked a question Unable to link ros::package::getPath

Unable to link ros::package::getPath I'm trying to do the same as this example : https://answers.ros.org/question/39523/

2022-05-03 07:59:33 -0500 received badge  Famous Question (source)