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

jjb1220's profile - activity

2023-03-29 09:56:32 -0500 received badge  Famous Question (source)
2023-02-06 09:05:40 -0500 received badge  Famous Question (source)
2023-02-06 09:05:40 -0500 received badge  Notable Question (source)
2023-02-06 09:05:40 -0500 received badge  Popular Question (source)
2022-11-10 05:55:52 -0500 received badge  Famous Question (source)
2022-06-21 00:40:29 -0500 received badge  Famous Question (source)
2022-04-14 13:40:09 -0500 received badge  Notable Question (source)
2021-10-29 02:52:08 -0500 received badge  Popular Question (source)
2021-10-23 02:53:43 -0500 edited question ImportError: No module named launch

ImportError: No module named launch Hello, I ran ./file_name.py to run a python file on ros2 supported open source . But

2021-10-22 23:48:28 -0500 commented answer ImportError: No module named launch

Thanks for the reply. As per your advice, I put python instead of python and tried to run it again, but the same error i

2021-10-22 08:06:53 -0500 received badge  Famous Question (source)
2021-10-21 19:41:00 -0500 commented answer how to creating fake Pose

thank you. I made a mistake

2021-10-21 19:40:01 -0500 marked best answer how to creating fake Pose

Hello, I am trying to pubuilsh a fake pose in code. I checked the message rules and put the desired value and executed it, but the following error occurs in the subscriber. May i know what mistake i made??

Error:   TF_NAN_INPUT: Ignoring transform for child_frame_id "map" from authority "unknown_publisher" because of a nan value in the transform (0.000000 0.000000 nan) (0.000000 0.000000 0.000000 1.000000)
         at line 244 in /tmp/binarydeb/ros-melodic-tf2-0.6.5/src/buffer_core.cpp


Below is the code I want to run

#include "ros/ros.h"
#include "geometry_msgs/PoseStamped.h"
#include "geometry_msgs/PoseWithCovarianceStamped.h"
#include <tf/transform_broadcaster.h>
#include <iostream>

static geometry_msgs::PoseStamped rpyPose_goal;

using namespace std;
class send_Pose{
public:
    // Initialize ROS publishers
    ros::Publisher start_pub;
    ros::Publisher goal_pub;

// Take Goal_pose as input and publish
void handle_goal_pose() {

  rpyPose.header.frame_id = "map";
  rpyPose.header.stamp = ros::Time::now();
  rpyPose.pose.pose.position.x = (float)16.9677391052;
  rpyPose.pose.pose.position.y = (float)6.06961250305;
  rpyPose.pose.pose.position.z = (float)0;
  rpyPose.pose.pose.orientation.x = (float)0;
  rpyPose.pose.pose.orientation.y = (float)0;
  rpyPose.pose.pose.orientation.z = (float)0.683183893935;
  rpyPose.pose.pose.orientation.w = (float)0.730246374224;
  start_pub.publish(rpyPose);
  ROS_INFO("SUCCESS!");
}

};

int main(int argc, char **argv) {
  ros::init(argc, argv, "rviz_click_to_2d");
  ros::NodeHandle node;
  send_Pose send_pose;

  send_pose.goal_pub = node.advertise<geometry_msgs::PoseStamped>("/move_base_simple/goal", 1);

  send_pose.handle_start_pose();
  send_pose.handle_goal_pose();

  ros::Rate loop_rate(10);

  while (ros::ok()) {
        ros::spinOnce();
        loop_rate.sleep();
  }
  return 0;
}
2021-10-21 11:15:46 -0500 edited question ImportError: No module named launch

ImportError: No module named launch Hello, I ran ./file_name.py to run a python file on ros2 supported open source . But

2021-10-21 11:15:30 -0500 received badge  Notable Question (source)
2021-10-21 11:15:01 -0500 asked a question how to creating fake Pose

how to creating fake Pose Hello, I am trying to pubuilsh a fake pose in code. I checked the message rules and put the de

2021-10-21 05:56:06 -0500 received badge  Popular Question (source)
2021-10-20 05:07:56 -0500 asked a question ImportError: No module named launch

ImportError: No module named launch Hello, I ran ./file_name.py to run a python file on ros2 supported open source . But

2021-10-17 02:51:40 -0500 asked a question module not found error : No module named launch

module not found error : No module named launch Hello, I wanted to download an open source and run a python file for 2D

2021-10-12 07:04:44 -0500 received badge  Famous Question (source)
2021-10-02 05:58:39 -0500 received badge  Notable Question (source)
2021-10-01 10:55:38 -0500 received badge  Notable Question (source)
2021-10-01 09:40:01 -0500 received badge  Notable Question (source)
2021-09-29 02:14:04 -0500 received badge  Popular Question (source)
2021-09-28 19:22:09 -0500 commented answer How do detect the point cloud is in front of you?

at fist, I'll start with links for converting point clouds to x,y,z arrays. Thanks so much for the detailed explanation

2021-09-28 19:18:52 -0500 marked best answer How do detect the point cloud is in front of you?

I can get the point cloud from velodyne.
but I need to get the point cloud that near velodyne or that infront of. so I watched the msg site but i don't still know.
Which message field indicates which point cloud is in front?

2021-09-28 19:13:26 -0500 received badge  Notable Question (source)
2021-09-28 11:40:01 -0500 asked a question How do detect the point cloud is in front of you?

How do detect the point cloud is in front of you? I can get the point cloud from velodyne. but I need to get the point c

2021-08-05 09:59:53 -0500 asked a question lego-slam lidar sensor arbitrary position

lego-slam lidar sensor arbitrary position Hello, I am try to mapping with Lego-loam slam. Except for the IMU sensor, onl

2021-07-24 21:52:18 -0500 received badge  Popular Question (source)
2021-07-24 12:39:38 -0500 asked a question No visualization of loam execution through bag file

No visualization of loam execution through bag file Hello, I want to visualize the loam by executing the current bag fil

2021-07-19 04:48:36 -0500 received badge  Popular Question (source)
2021-07-16 01:20:21 -0500 commented question can't visualize lego rom slam with vleodyne

thank you for comment, this is my view frames

2021-07-15 11:24:13 -0500 edited question can't visualize lego rom slam with vleodyne

can't visualize lego rom slam with vleodyne hello, I am a newbie to ROS. I currently have a 9DOF axis IMU sensor and a l

2021-07-15 11:20:36 -0500 edited question can't visualize lego rom slam with vleodyne

can't visualize lego rom slam with vleodyne hello, I am a newbie to ROS. I currently have a 9DOF axis IMU sensor and a l

2021-07-15 11:20:36 -0500 received badge  Editor (source)
2021-07-15 11:15:16 -0500 asked a question can't visualize lego rom slam with vleodyne

can't visualize lego rom slam with vleodyne hello, I am a newbie to ROS. I currently have a 9DOF axis IMU sensor and a l

2021-07-15 10:35:37 -0500 commented answer MSG to TF : Quaternion Not Properly Normalized

As a result, the above article did not fix it. I just got a hint. lol I republished the values ​​provided by the IMU sen

2021-07-15 10:33:15 -0500 commented answer MSG to TF : Quaternion Not Properly Normalized

As a result, the above article did not fix it. lol I republished the values ​​provided by the IMU sensor I use according

2021-07-15 10:00:08 -0500 received badge  Supporter (source)
2021-07-15 10:00:07 -0500 marked best answer MSG to TF : Quaternion Not Properly Normalized

Thank you for clicking, hello, I'm ros begginer. I am currently using IMU for Slam mapping. But I get the ERR MSG(MSG to TF : Quaternion Not Properly Normalized). What should I do??

$ rostopic echo /imu_data
header:
  seq: 122552
  stamp:
  secs: 1626158167
  nsecs: 547560799
  frame_id: "imu_link"
orientation:
  x: 126.18
  y: -40.61
  z: -174.65
  w: -40.63
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
  x: 2.20086018676
  y: 0.0
  z: 0.0
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
  x: 0.0
  y: 0.0
  z: 0.0
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]