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

mohsen's profile - activity

2022-11-28 00:34:55 -0500 received badge  Taxonomist
2020-03-23 06:08:12 -0500 received badge  Good Answer (source)
2020-02-25 03:26:47 -0500 received badge  Famous Question (source)
2020-02-24 19:05:38 -0500 received badge  Good Question (source)
2020-01-18 08:01:51 -0500 received badge  Famous Question (source)
2019-12-05 02:16:02 -0500 received badge  Famous Question (source)
2019-12-05 02:16:02 -0500 received badge  Notable Question (source)
2019-04-08 01:06:55 -0500 marked best answer robot_upstart: Nothing starts on startup

I have successfully executed the command

rosrun robot_upstart install myPackage/test.launch

and also

sudo systemctl daemon-reload && systemctl start myPackage

But after I reboot or restart, I can confirm by using rosnode list and rostopic list that the nodes listed in the launch file never start. Starting the launch file using roslaunch works fine so that's not the issue.
Here's the content of test.launch

<launch>
      <node name='node' pkg='myPackgage' type='simple_node' />
      <node name='graph' pkg='rqt_graph' type='rqt_graph' />
</launch>

Update 1: Additional information:
- Starting the service manually doesn't work (even before reboot).

sudo service myPackage start

No error, but nodes don't run.
- Files installed during the robot_upstart install process are still there after reboot.
- There is no log file for robot_upstart in /var/log/
- There's only one user account, and logging into it I can see the packages and environment variables.

Update 2:
I tried launching a couple other nodes and they worked fine. But that one node which receives sensor data still doesn't run. (rqt_graph doesn't run either, but it doesn't matter since it's useless as a daemon.)

2019-04-06 11:04:29 -0500 received badge  Nice Answer (source)
2019-03-28 16:04:18 -0500 received badge  Notable Question (source)
2019-03-28 16:04:18 -0500 received badge  Famous Question (source)
2019-03-26 09:40:27 -0500 received badge  Famous Question (source)
2019-03-04 03:25:36 -0500 received badge  Nice Question (source)
2018-09-10 10:36:15 -0500 commented answer Synchronizer with approximate time policy in a class [C++]

Glad to hear that!

2018-09-07 14:00:01 -0500 received badge  Self-Learner (source)
2018-08-13 12:37:45 -0500 commented question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

AFAIK, the SOEM packages that are written specifically for ROS and OROCOS are available for Indigo. Still, you might be

2018-08-10 01:16:05 -0500 commented question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Take a look at the Indigo tab of this tutorial. for ROS + OROCOS

2018-08-10 01:13:38 -0500 commented question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Hello. The solution that I think might work is ROS Indigo + OROCOS + RTT_SOEM. I say "might" because I haven't tested it

2018-08-10 01:12:48 -0500 commented question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Hello. The solution that I think might work is ROS Indigo + OROCOS + RTT_SOEM. I say "might" because I haven't tested it

2018-08-10 01:12:18 -0500 commented question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

I should also mention this tutorial and the following packages: rtt_soem_robotiq, rtt_soem and soem.

2018-08-10 01:07:23 -0500 commented question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Hello. The solution that I think might work is ROS Indigo + OROCOS + RTT_SOEM. I say "might" because I haven't tested it

2018-08-09 08:07:12 -0500 received badge  Notable Question (source)
2018-08-09 08:07:12 -0500 received badge  Popular Question (source)
2018-08-02 08:05:50 -0500 commented question Synchronizer with approximate time policy in a class [C++]

I haven't run this for a while, but I remember that it was working fine. Have a look.

2018-07-24 05:29:26 -0500 edited question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Which version of OROCOS should I install for integration with ROS Kinetic Kame? and how? Hello. I have two questions. 1

2018-07-24 05:28:40 -0500 edited question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Which version of OROCOS should I install for integration with ROS Kinetic Kame? and how? Hello. I have two questions. 1

2018-07-24 05:28:31 -0500 edited question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Which version of OROCOS should I install for integration with ROS Kinetic Kame? and how? Hello. I have two questions. 1

2018-07-24 05:27:52 -0500 edited question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Which version of OROCOS should I install for integration with ROS Kinetic Kame? and how? Hello. I have two questions. 1

2018-07-24 04:51:31 -0500 asked a question Which version of OROCOS and ROS should I install for communication with EtherCAT network? and how?

Which version of OROCOS should I install for integration with ROS Kinetic Kame? and how? Hello. I have two questions. 1

2018-07-15 13:43:12 -0500 marked best answer A general question about the Kalman filter

In theory of Kalman filters, we should have a model of the system. For example, if we are using the "simple" Kalman filter for a linear system, the algorithm contains the following prediction step:
image description
Here the matrices A, B and the input u are assumed to be known.
But in ROS packages robot_pose_ekf, robot_localization (and elsewhere), I have not encountered a code that actually asks the user to enter A and B matrices or the input u. So how do they get away with ignoring the system's dynamics?

2018-06-19 09:42:23 -0500 marked best answer Synchronizer with approximate time policy in a class [C++]

I have been trying to implement a synchronizer with approximate time policy in a class. The following code compiles with no problem. But how should I define the Synchronizer and the registerCallback? (The two commented lines)

#include "header.h"
using namespace message_filters;
typedef control_sys::IntWithHeader myMsg;

class Node
{

public:

    Node()
{
    sub1.subscribe(node, "in1", 1);
    sub2.subscribe(node, "in2", 1);

}
    void callback(const myMsg &in1, const myMsg &in2)
{
        std::cout << "Synchronization successful" << std::endl;
}   


private:

    ros::NodeHandle node;
    ros::Publisher pub;
    std_msgs::Int32 out;
    message_filters::Subscriber<myMsg> sub1;
    message_filters::Subscriber<myMsg> sub2;
    typedef sync_policies::ApproximateTime<myMsg, myMsg> MySyncPolicy;
    // This is how I would define them inside main()
    //Synchronizer<MySyncPolicy> sync(MySyncPolicy(10), sub1, sub2);
    //sync.registerCallback(&callback);
};

int main(int argc, char **argv)
{

    ros::init(argc, argv, "synchronizer");
    Node synchronizer;

    ros::spin();

}

Update 1: Headers included:

#include <ros/ros.h>
#include <std_msgs/Int32.h>
#include <iostream>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include "control_sys/IntWithHeader.h"

Update 2: Error output of catkin_make (in terminal)

2018-06-01 14:39:08 -0500 received badge  Popular Question (source)
2018-05-23 05:04:36 -0500 commented question How can I measure latency in a CAN bus?

Thanks. I asked here since it is the only "serious" robotics Q&A website that I know of on the Internet. I should al

2018-05-23 04:57:57 -0500 commented question How can I measure latency in a CAN bus?

Thanks. I should note that by CAN bus I mean the whole system, including the motor drivers (i.e. the motion control solu

2018-05-23 04:24:52 -0500 edited question How can I measure latency in a CAN bus?

How can I measure latency in a CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any n

2018-05-23 04:24:48 -0500 edited question How can I measure latency in a CAN bus?

How can I measure latency in CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any num

2018-05-23 04:20:18 -0500 edited question How can I measure latency in a CAN bus?

How can I measure latency in CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any num

2018-05-23 04:19:45 -0500 edited question How can I measure latency in a CAN bus?

How can I measure latency in CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any num

2018-05-23 04:19:18 -0500 edited question How can I measure latency in a CAN bus?

How can I measure latency in CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any num

2018-05-23 04:18:20 -0500 edited question How can I measure latency in a CAN bus?

How can I measure latency in CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any num

2018-05-23 04:17:43 -0500 asked a question How can I measure latency in a CAN bus?

How can I measure latency in CAN bus? This is not directly related to ROS. Given a CAN bus with one master and any numbe

2018-05-15 19:08:07 -0500 received badge  Enlightened (source)
2018-05-13 06:43:05 -0500 received badge  Good Answer (source)
2018-05-13 04:44:01 -0500 received badge  Nice Answer (source)
2018-05-13 01:43:18 -0500 edited answer Parallel execution of same ROS nodes

You can configure the launch file so that the same group of nodes are put in different namespaces. For example: <

2018-05-13 01:41:03 -0500 edited answer Parallel execution of same ROS nodes

You can configure the launch file so that the same group of nodes are put in different namespaces. For example: <