installROSTX2 icon indicating copy to clipboard operation
installROSTX2 copied to clipboard

Not a valid identifier

Open ArtlyStyles opened this issue 6 years ago • 5 comments

Hi Jim:

After install ROS and when I open a new terminal, it always complained

bash: export: 192.168.55.1': not a valid identifier bash: export: xxx': not a valid identifier bash: export: `': not a valid identifier

Why?

Thank you.

ArtlyStyles avatar Apr 14 '18 17:04 ArtlyStyles

You will need to edit the ~/.bashrc file to set your network configuration. Set the ROS_MASTER and ROS_IP appropriately.

jetsonhacks avatar Apr 14 '18 18:04 jetsonhacks

Thanks. How can I find the ROS_MASTER and ROS_IP?

ArtlyStyles avatar Apr 14 '18 19:04 ArtlyStyles

These are the standard ROS definitions. ROS works as a distributed network system. You will need to familiarize yourself with the nomenclature and networking setup for your particular robot/application. There are many articles on the web, it's beyond the scope of what will be discussed here.

During installation, the installer assumes that you are running ROS_MASTER on the Jetson (localhost) and that the ROS_IP is the current IP of the Jetson. There appears to be an issue in your case, perhaps a dynamic address assignment, or a malformed export statement.

jetsonhacks avatar Apr 14 '18 20:04 jetsonhacks

this is the line in my .bashrc.

export ROS_IP=192.168.0.29 192.168.55.1 2601:644:8103:5760:89d4:554b:8780:4cc1 2601:644:8103:5760:6467:b598:2740:cb24

The ip is correct. I think the messages meant the syntax of this line was not correct.

ArtlyStyles avatar Apr 14 '18 20:04 ArtlyStyles

It should only be one of the IP addresses, e.g.

export ROS_IP=192.168.0.29

jetsonhacks avatar Apr 14 '18 20:04 jetsonhacks