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

kllysin's profile - activity

2021-05-31 19:02:09 -0500 received badge  Student (source)
2021-02-09 21:13:24 -0500 received badge  Taxonomist
2020-03-03 21:50:59 -0500 received badge  Famous Question (source)
2020-03-03 21:50:59 -0500 received badge  Notable Question (source)
2020-03-03 21:50:59 -0500 received badge  Popular Question (source)
2019-10-28 08:11:00 -0500 received badge  Famous Question (source)
2019-03-25 10:08:14 -0500 received badge  Famous Question (source)
2019-02-14 01:51:13 -0500 received badge  Famous Question (source)
2019-01-25 15:49:35 -0500 received badge  Notable Question (source)
2019-01-25 15:10:30 -0500 asked a question What is the frame of '/move_base/NavfnROS/plan' in ros nav stack

What is the frame of '/move_base/NavfnROS/plan' in ros nav stack I am trying to get the ros nav stack running on my robo

2019-01-25 13:51:36 -0500 received badge  Famous Question (source)
2019-01-25 13:51:36 -0500 received badge  Notable Question (source)
2019-01-11 12:49:09 -0500 marked best answer map_server to save map from nav_msgs/OccupancyGrid published by the Google cartographer ROS API?

Hi, I am using Google cartographer ROS API to generate a map. Is it possible to use ROS map_server with this to save the map using rosrun map_server map_server mymap.yaml or retrieve the map using nav_msgs/GetMap?

2019-01-04 17:11:57 -0500 received badge  Notable Question (source)
2018-11-26 02:20:39 -0500 received badge  Famous Question (source)
2018-11-21 12:58:12 -0500 received badge  Popular Question (source)
2018-11-20 03:15:44 -0500 received badge  Popular Question (source)
2018-11-19 14:53:23 -0500 asked a question Segmentation fault while trying to access subscribed array

Segmentation fault while trying to access subscribed array Hi everyone, I have the following callback function to subsc

2018-11-19 14:47:47 -0500 answered a question Subscribing to nav_msgs::Path message

Adding the solution I figured out. I changed the callback function to: void planCallback(const nav_msgs::Path::ConstPtr

2018-11-19 14:47:01 -0500 commented answer Subscribing to nav_msgs::Path message

Thanks for your answer!

2018-11-19 14:45:58 -0500 marked best answer Subscribing to nav_msgs::Path message

Hi everyone,

I am trying to subscribe to a message of type nav_msgs::Path. Following is the callback function:

    nav_msgs::Path gPlan;
    void planCallback(nav_msgs::Path::ConstPtr& msg)
    {
         int i=0;
          for(std::vector<geometry_msgs::PoseStamped>::const_iterator it= msg->poses.begin(); it!= msg->poses.end();  ++it)
          {

              gPlan.poses[i] = *it;
              i++;
           }
      }

The subscriber has been defined as:

ros::Subscriber planSub = n.subscribe("global_plan", 1000, planCallback);

The error I am getting is as follows:

In file included from /opt/ros/indigo/include/ros/serialization.h:37:0,
                 from /opt/ros/indigo/include/ros/publisher.h:34,
                 from /opt/ros/indigo/include/ros/node_handle.h:32,
                 from /opt/ros/indigo/include/ros/ros.h:45,
                 from /home/lead/catkin_ws_autoware/src/PPpublisher/src/purepursuitPub.cpp:1:
/opt/ros/indigo/include/ros/message_traits.h: In instantiation of ‘static const char* ros::message_traits::MD5Sum<M>::value() [with M = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >]’:
/opt/ros/indigo/include/ros/message_traits.h:228:103:   required from ‘const char* ros::message_traits::md5sum() [with M = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >]’
/opt/ros/indigo/include/ros/subscribe_options.h:89:50:   required from ‘void ros::SubscribeOptions::initByFullCallbackType(const string&, uint32_t, const boost::function<void(P)>&, const boost::function<boost::shared_ptr<typename ros::ParameterAdapter<P>::Message>()>&) [with P = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >&; std::string = std::basic_string<char>; uint32_t = unsigned int; typename ros::ParameterAdapter<P>::Message = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >]’
/opt/ros/indigo/include/ros/node_handle.h:658:5:   required from ‘ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (*)(M), const ros::TransportHints&) [with M = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >&; std::string = std::basic_string<char>; uint32_t = unsigned int]’
/home/lead/catkin_ws_autoware/src/PPpublisher/src/purepursuitPub.cpp:71:74:   required from here
/opt/ros/indigo/include/ros/message_traits.h:121:29: error: ‘__s_getMD5Sum’ is not a member of ‘boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >’
     return M::__s_getMD5Sum().c_str();
                             ^
/opt/ros/indigo/include/ros/message_traits.h: In instantiation of ‘static const char* ros::message_traits::DataType<M>::value() [with M = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >]’:
/opt/ros/indigo/include/ros/message_traits.h:237:105:   required from ‘const char* ros::message_traits::datatype() [with M = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >]’
/opt/ros/indigo/include/ros/subscribe_options.h:90:54:   required from ‘void ros::SubscribeOptions::initByFullCallbackType(const string&, uint32_t, const boost::function<void(P)>&, const boost::function<boost::shared_ptr<typename ros::ParameterAdapter<P>::Message>()>&) [with P = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >&; std::string = std::basic_string<char>; uint32_t = unsigned int; typename ros::ParameterAdapter<P>::Message = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >]’
/opt/ros/indigo/include/ros/node_handle.h:658:5:   required from ‘ros::Subscriber ros::NodeHandle::subscribe(const string&, uint32_t, void (*)(M), const ros::TransportHints&) [with M = boost::shared_ptr<const nav_msgs::Path_<std::allocator<void> > >&; std::string = std::basic_string<char>; uint32_t = unsigned int]’
/home/lead/catkin_ws_autoware/src/PPpublisher/src/purepursuitPub.cpp:71:74:   required from here
/opt/ros/indigo ...
(more)
2018-11-19 14:45:58 -0500 received badge  Scholar (source)
2018-11-19 13:30:47 -0500 edited question Subscribing to nav_msgs::Path message

Subscribing to nav_msgs::Path message Hi everyone, I am trying to subscribe to a message of type nav_msgs::Path. Follo

2018-11-19 13:28:37 -0500 asked a question Subscribing to nav_msgs::Path message

Subscribing to nav_msgs::Path message Hi everyone, I am trying to subscribe to a message of type nav_msgs::Path. Follo

2018-08-26 21:34:38 -0500 received badge  Popular Question (source)
2018-08-17 09:55:59 -0500 received badge  Enthusiast
2018-08-15 17:07:10 -0500 edited question Ros Navigation - Global costmap not seen on rviz and not used for global planning

Ros Navigation - Global costmap not seen on rviz and not used for global planning I am using the ros navigation stack to

2018-08-15 17:06:21 -0500 edited question Ros Navigation - Global costmap not seen on rviz and not used for global planning

Ros Navigation - Global costmap not seen on rviz and not used for global planning I am using the ros navigation stack to

2018-08-15 17:03:00 -0500 edited question Ros Navigation - Global costmap not seen on rviz and not used for global planning

Ros Navigation - Global costmap not seen on rviz and not used for global planning I am using the ros navigation stack to

2018-08-15 16:30:20 -0500 edited question Ros Navigation - Global costmap not seen on rviz and not used for global planning

Ros Navigation - Global costmap not seen on rviz and not used for global planning I am using the ros navigation stack to

2018-08-15 16:27:35 -0500 edited question Ros Navigation - Global costmap not seen on rviz and not used for global planning

Global map and costmap not seen on rviz and not used for global planning I am using the ros navigation stack to navigate

2018-08-15 16:27:35 -0500 received badge  Editor (source)
2018-08-15 15:45:25 -0500 asked a question Ros Navigation - Global costmap not seen on rviz and not used for global planning

Global map and costmap not seen on rviz and not used for global planning I am using the ros navigation stack to navigate

2018-07-19 03:59:01 -0500 received badge  Notable Question (source)
2018-07-19 03:58:16 -0500 received badge  Popular Question (source)
2018-06-29 16:04:38 -0500 asked a question map_server to save map from nav_msgs/OccupancyGrid published by the Google cartographer ROS API?

map_server to save map from nav_msgs/OccupancyGrid published by the Google cartographer ROS API? Hi, I am using Google

2018-06-14 02:47:42 -0500 received badge  Notable Question (source)
2018-06-12 09:49:19 -0500 commented question How can I get the IMU data in the forms nav_msgs/Odometry and Sensor_msgs/IMU

The tutorial I followed shows only YPR data. Upon going through the source code itself, i found that i does give sensor_

2018-06-11 18:06:03 -0500 received badge  Popular Question (source)
2018-06-11 10:16:25 -0500 edited question How can I get the IMU data in the forms nav_msgs/Odometry and Sensor_msgs/IMU

How can I get the IMU data in the forms nav_msgs/Odometry and Sensor_msgs/IMU Hi, I am trying to understand how to integ

2018-06-09 18:40:58 -0500 asked a question How can I get the IMU data in the forms nav_msgs/Odometry and Sensor_msgs/IMU

How can I get the IMU data in the forms nav_msgs/Odometry and Sensor_msgs/IMU Hi, I am trying to understand how to integ